-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #657 from NLeSC/next_steps_workflow
add next steps workflows to a single file
- Loading branch information
Showing
7 changed files
with
133 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
...ows %}.github{% endif %}/workflows/{% if AddCitation %}next_steps_citation.yml{% endif %}
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...flows %}.github{% endif %}/workflows/{% if AddLinting %}next_steps_linting.yml{% endif %}
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...}/workflows/{% if AddOnlineDocumentation %}next_steps_online_documentation.yml{% endif %}
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...%}.github{% endif %}/workflows/{% if AddSonarCloud %}next_steps_sonarcloud.yml{% endif %}
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
...rkflows %}.github{% endif %}/workflows/{% if AddZenodo %}next_steps_zenodo.yml{% endif %}
This file was deleted.
Oops, something went wrong.
131 changes: 131 additions & 0 deletions
131
...flows %}.github{% endif %}/workflows/{% if HasWorkflows %}next_steps.yml{% endif %}.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
on: [push] | ||
permissions: | ||
contents: write | ||
issues: write | ||
name: Create GitHub issues | ||
jobs: | ||
next_steps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
{%- if AddCitation %} | ||
- name: Create citation data issue | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: {{ '${{' }}secrets.GITHUB_TOKEN{{ '}}' }} | ||
with: | ||
filename: .github/workflows/next_steps_citation_issue.md | ||
id: citation | ||
- name: List created issues | ||
run: | | ||
echo "Created issues that must be completed to have fully working Python package: | ||
* Citation data {{ '${{' }} steps.citation.outputs.url {{ '}}' }}" | ||
- name: Cleanup files needed to create next steps issues | ||
run: | | ||
git config --global user.name 'NLeSC Python template' | ||
git config --global user.email 'nlesc-python-template@users.noreply.github.com' | ||
git pull # other next step workflows may push changes before | ||
git rm .github/workflows/next_steps_citation_issue.md | ||
git commit -am "Cleanup automated next steps issue generator for citation" | ||
git push | ||
{%- endif %} | ||
|
||
{%- if AddLinting %} | ||
- name: Create linting issue | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: {{ '${{' }}secrets.GITHUB_TOKEN{{ '}}' }} | ||
with: | ||
filename: .github/workflows/next_steps_linting_issue.md | ||
id: linting | ||
- name: List created issues | ||
run: | | ||
echo "Created issues that must be completed to have fully working Python package: | ||
* Linting fixes {{ '${{' }} steps.linting.outputs.url {{ '}}' }}" | ||
- name: Cleanup files needed to create next steps issues | ||
run: | | ||
git config --global user.name 'NLeSC Python template' | ||
git config --global user.email 'nlesc-python-template@users.noreply.github.com' | ||
git pull # other next step workflows may push changes before | ||
git rm .github/workflows/next_steps_linting_issue.md | ||
git commit -am "Cleanup automated next steps issue generator" | ||
git push | ||
{%- endif %} | ||
|
||
{%- if AddOnlineDocumentation %} | ||
- name: Create online documentation issue | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: {{ '${{' }}secrets.GITHUB_TOKEN{{ '}}' }} | ||
with: | ||
filename: .github/workflows/next_steps_online_documentation_issue.md | ||
id: readthedocs | ||
- name: List created issues | ||
run: | | ||
echo "Created issues that must be completed to have fully working Python package: | ||
* Read the Docs instructions {{ '${{' }} steps.readthedocs.outputs.url {{ '}}' }}" | ||
- name: Cleanup files needed to create next steps issues | ||
run: | | ||
git config --global user.name 'NLeSC Python template' | ||
git config --global user.email 'nlesc-python-template@users.noreply.github.com' | ||
git pull # other next step workflows may push changes before | ||
git rm .github/workflows/next_steps_online_documentation_issue.md | ||
git commit -am "Cleanup automated next steps issue generator for online documentation" | ||
git push | ||
{%- endif %} | ||
|
||
{%- if AddZenodo %} | ||
- name: Create Zenodo integration issue | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: {{ '${{' }}secrets.GITHUB_TOKEN{{ '}}' }} | ||
with: | ||
filename: .github/workflows/next_steps_zenodo_issue.md | ||
id: zenodo | ||
- name: List created issues | ||
run: | | ||
echo "Created issues that must be completed to have fully working Python package: | ||
* Sonarcloud integration {{ '${{' }} steps.sonarcloud.outputs.url {{ '}}' }}" | ||
- name: Cleanup files needed to create next steps issues | ||
run: | | ||
git config --global user.name 'NLeSC Python template' | ||
git config --global user.email 'nlesc-python-template@users.noreply.github.com' | ||
git pull # other next step workflows may push changes before | ||
git rm .github/workflows/next_steps_zenodo_issue.md | ||
git commit -am "Cleanup automated next steps issue generator for zenodo" | ||
git push | ||
{%- endif %} | ||
|
||
{%- if AddSonarCloud %} | ||
- name: Create Sonarcloud issue | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: {{ '${{' }}secrets.GITHUB_TOKEN{{ '}}' }} | ||
with: | ||
filename: .github/workflows/next_steps_sonarcloud_issue.md | ||
id: sonarcloud | ||
- name: List created issues | ||
run: | | ||
echo "Created issues that must be completed to have fully working Python package: | ||
* Sonarcloud integration {{ '${{' }} steps.sonarcloud.outputs.url {{ '}}' }}" | ||
- name: Cleanup files needed to create next steps issues | ||
run: | | ||
git config --global user.name 'NLeSC Python template' | ||
git config --global user.email 'nlesc-python-template@users.noreply.github.com' | ||
git pull # other next step workflows may push changes before | ||
git rm .github/workflows/next_steps_sonarcloud_issue.md | ||
git commit -am "Cleanup automated next steps issue generator for sonarcloud" | ||
git push | ||
{%- endif %} | ||
|
||
{%- if AddCitation or AddLinting or AddOnlineDocumentation or AddZenodo or AddSonarCloud %} | ||
- name: Cleanup files needed to create next steps issues | ||
run: | | ||
git config --global user.name 'NLeSC Python template' | ||
git config --global user.email 'nlesc-python-template@users.noreply.github.com' | ||
git pull # other next step workflows may push changes before | ||
git rm .github/workflows/next_steps.yml | ||
git commit -am "Cleanup automated next steps issue generator" | ||
git push | ||
{%- endif %} |