Skip to content

Commit 987751e

Browse files
committed
remove next_steps.yml after creating all the issues
1 parent 44f18d6 commit 987751e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11+
1112
{%- if AddCitation %}
1213
- name: Create citation data issue
1314
uses: JasonEtco/create-an-issue@v2
@@ -122,3 +123,14 @@ jobs:
122123
git commit -am "Cleanup automated next steps issue generator for sonarcloud"
123124
git push
124125
{%- endif %}
126+
127+
{%- if AddCitation or AddLinting or AddOnlineDocumentation or AddZenodo or AddSonarCloud %}
128+
- name: Cleanup files needed to create next steps issues
129+
run: |
130+
git config --global user.name 'NLeSC Python template'
131+
git config --global user.email 'nlesc-python-template@users.noreply.github.com'
132+
git pull # other next step workflows may push changes before
133+
git rm .github/workflows/next_steps.yml
134+
git commit -am "Cleanup automated next steps issue generator"
135+
git push
136+
{%- endif %}

0 commit comments

Comments
 (0)