Skip to content

Commit bf9cf12

Browse files
committed
Add/Update issue tracking workflow
1 parent 59ed686 commit bf9cf12

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Add Issue to main Project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
track_issue:
10+
runs-on: cg-linux
11+
steps:
12+
# Generate token for GitHub app
13+
- name: Generate token
14+
id: generate-token
15+
uses: actions/create-github-app-token@v1
16+
with:
17+
app-id: 1008511
18+
private-key: ${{ secrets.CG_ISSUE_PROCESSOR_TOKEN }}
19+
20+
# Add the issue to the project
21+
- name: Add issue to project
22+
env:
23+
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
24+
PROJECT_ID: 3
25+
ISSUE_ID: ${{ github.event.issue.number }}
26+
run: |
27+
gh project item-add $PROJECT_ID --owner Catglobe --url https://github.com/$GITHUB_REPOSITORY/issues/$ISSUE_ID
28+

0 commit comments

Comments
 (0)