Skip to content

Commit 8f34e71

Browse files
committed
add a separate workflow for sonarcloud next steps
1 parent 1b9021a commit 8f34e71

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
lines changed

template/.github/workflows/next_steps.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11-
- name: Create Sonarcloud integration issue
12-
uses: JasonEtco/create-an-issue@v2
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
with:
16-
filename: .github/next_steps/01_sonarcloud_integration.md
17-
id: sonarcloud
1811
- name: Create Zenodo integration issue
1912
uses: JasonEtco/create-an-issue@v2
2013
env:
@@ -32,7 +25,6 @@ jobs:
3225
- name: List created issues
3326
run: |
3427
echo 'Created issues that must be completed to have fully working Python package:
35-
* Sonarcloud integration ${{ steps.sonarcloud.outputs.url }}
3628
* Zenodo integration ${{ steps.zenodo.outputs.url }}
3729
* Linting fixes ${{ steps.linting.outputs.url }}'
3830
- name: Cleanup files needed to create next steps issues
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on: [push]
2+
permissions:
3+
contents: write
4+
issues: write
5+
name: Create an issue for Sonarcloud
6+
jobs:
7+
next_steps:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Create Sonarcloud issue
12+
uses: JasonEtco/create-an-issue@v2
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
with:
16+
filename: .github/workflows/next_steps_sonarcloud_issue.md
17+
id: sonarcloud
18+
- name: List created issues
19+
run: |
20+
echo 'Created issues that must be completed to have fully working Python package:
21+
* Sonarcloud integration ${{ steps.sonarcloud.outputs.url }}'
22+
- name: Cleanup files needed to create next steps issues
23+
run: |
24+
git config --global user.name 'NLeSC Python template'
25+
git config --global user.email '[email protected]'
26+
git rm .github/workflows/next_steps_sonarcloud.yml
27+
git rm .github/workflows/next_steps_sonarcloud_issue.md
28+
git commit -am "Cleanup automated next steps issue generator for sonarcloud"
29+
git push

0 commit comments

Comments
 (0)