Skip to content

Commit 44f18d6

Browse files
committed
add next steps workflows to a single file
1 parent 047e6eb commit 44f18d6

6 files changed

Lines changed: 124 additions & 151 deletions

template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddCitation %}next_steps_citation.yml{% endif %}

Lines changed: 0 additions & 30 deletions
This file was deleted.

template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddLinting %}next_steps_linting.yml{% endif %}

Lines changed: 0 additions & 30 deletions
This file was deleted.

template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddOnlineDocumentation %}next_steps_online_documentation.yml{% endif %}

Lines changed: 0 additions & 30 deletions
This file was deleted.

template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddSonarCloud %}next_steps_sonarcloud.yml{% endif %}

Lines changed: 0 additions & 30 deletions
This file was deleted.

template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddZenodo %}next_steps_zenodo.yml{% endif %}

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
on: [push]
2+
permissions:
3+
contents: write
4+
issues: write
5+
name: Create an issues
6+
jobs:
7+
next_steps:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
{%- if AddCitation %}
12+
- name: Create citation data issue
13+
uses: JasonEtco/create-an-issue@v2
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
with:
17+
filename: .github/workflows/next_steps_citation_issue.md
18+
id: citation
19+
- name: List created issues
20+
run: |
21+
echo 'Created issues that must be completed to have fully working Python package:
22+
* Citation data ${{ steps.citation.outputs.url }}'
23+
- name: Cleanup files needed to create next steps issues
24+
run: |
25+
git config --global user.name 'NLeSC Python template'
26+
git config --global user.email 'nlesc-python-template@users.noreply.github.com'
27+
git pull # other next step workflows may push changes before
28+
git rm .github/workflows/next_steps_citation.yml
29+
git rm .github/workflows/next_steps_citation_issue.md
30+
git commit -am "Cleanup automated next steps issue generator for citation"
31+
git push
32+
{%- endif %}
33+
34+
{%- if AddLinting %}
35+
- name: Create linting issue
36+
uses: JasonEtco/create-an-issue@v2
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
filename: .github/workflows/next_steps_linting_issue.md
41+
id: linting
42+
- name: List created issues
43+
run: |
44+
echo 'Created issues that must be completed to have fully working Python package:
45+
* Linting fixes ${{ steps.linting.outputs.url }}'
46+
- name: Cleanup files needed to create next steps issues
47+
run: |
48+
git config --global user.name 'NLeSC Python template'
49+
git config --global user.email 'nlesc-python-template@users.noreply.github.com'
50+
git pull # other next step workflows may push changes before
51+
git rm .github/workflows/next_steps_linting.yml
52+
git rm .github/workflows/next_steps_linting_issue.md
53+
git commit -am "Cleanup automated next steps issue generator"
54+
git push
55+
{%- endif %}
56+
57+
{%- if AddOnlineDocumentation %}
58+
- name: Create online documentation issue
59+
uses: JasonEtco/create-an-issue@v2
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
with:
63+
filename: .github/workflows/next_steps_online_documentation_issue.md
64+
id: readthedocs
65+
- name: List created issues
66+
run: |
67+
echo 'Created issues that must be completed to have fully working Python package:
68+
* Read the Docs instructions ${{ steps.readthedocs.outputs.url }}'
69+
- name: Cleanup files needed to create next steps issues
70+
run: |
71+
git config --global user.name 'NLeSC Python template'
72+
git config --global user.email 'nlesc-python-template@users.noreply.github.com'
73+
git pull # other next step workflows may push changes before
74+
git rm .github/workflows/next_steps_online_documentation.yml
75+
git rm .github/workflows/next_steps_online_documentation_issue.md
76+
git commit -am "Cleanup automated next steps issue generator for online documentation"
77+
git push
78+
{%- endif %}
79+
80+
{%- if AddZenodo %}
81+
- name: Create Zenodo integration issue
82+
uses: JasonEtco/create-an-issue@v2
83+
env:
84+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
with:
86+
filename: .github/workflows/next_steps_zenodo_issue.md
87+
id: zenodo
88+
- name: List created issues
89+
run: |
90+
echo 'Created issues that must be completed to have fully working Python package:
91+
* Sonarcloud integration ${{ steps.sonarcloud.outputs.url }}'
92+
- name: Cleanup files needed to create next steps issues
93+
run: |
94+
git config --global user.name 'NLeSC Python template'
95+
git config --global user.email 'nlesc-python-template@users.noreply.github.com'
96+
git pull # other next step workflows may push changes before
97+
git rm .github/workflows/next_steps_zenodo.yml
98+
git rm .github/workflows/next_steps_zenodo_issue.md
99+
git commit -am "Cleanup automated next steps issue generator for zenodo"
100+
git push
101+
{%- endif %}
102+
103+
{%- if AddSonarCloud %}
104+
- name: Create Sonarcloud issue
105+
uses: JasonEtco/create-an-issue@v2
106+
env:
107+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108+
with:
109+
filename: .github/workflows/next_steps_sonarcloud_issue.md
110+
id: sonarcloud
111+
- name: List created issues
112+
run: |
113+
echo 'Created issues that must be completed to have fully working Python package:
114+
* Sonarcloud integration ${{ steps.sonarcloud.outputs.url }}'
115+
- name: Cleanup files needed to create next steps issues
116+
run: |
117+
git config --global user.name 'NLeSC Python template'
118+
git config --global user.email 'nlesc-python-template@users.noreply.github.com'
119+
git pull # other next step workflows may push changes before
120+
git rm .github/workflows/next_steps_sonarcloud.yml
121+
git rm .github/workflows/next_steps_sonarcloud_issue.md
122+
git commit -am "Cleanup automated next steps issue generator for sonarcloud"
123+
git push
124+
{%- endif %}

0 commit comments

Comments
 (0)