Skip to content

Commit 892037f

Browse files
committed
fix: add new issues to project workflow
1 parent 6b3184f commit 892037f

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
name: Add Issue to Projects
1+
name: Add all issues created to projects
22

33
on:
44
issues:
55
types: [opened]
66

77
jobs:
8-
add-to-projects:
8+
add-to-govtool-all-project:
9+
name: Add issue to GovTool all project
910
runs-on: ubuntu-latest
1011
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@v3
12+
- uses: actions/[email protected]
13+
with:
14+
project-url: https://github.com/users/IntersectMBO/projects/30
15+
github-token: ${{ secrets.ADD_ISSUE_TO_PROJECT_PAT }}
1316

14-
- name: Install GitHub CLI
15-
run: sudo apt-get install gh
16-
17-
- name: Add issue to GovTool Project
18-
run: gh project item-add IntersectMBO/30 --content-type Issue --content-id ${{ github.event.issue.node_id }}
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
22-
- name: Add issue to Community Backlog Project
23-
run: gh project item-add IntersectMBO/34 --content-type Issue --content-id ${{ github.event.issue.node_id }}
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
add-to-community-backlog-project:
18+
name: Add issue to governance tools community backlog project
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/[email protected]
22+
with:
23+
project-url: https://github.com/users/IntersectMBO/projects/34
24+
github-token: ${{ secrets.ADD_ISSUE_TO_PROJECT_PAT }}

0 commit comments

Comments
 (0)