Skip to content

Commit 1e1b481

Browse files
committed
Add/Update issue tracking workflow
1 parent a9f8c17 commit 1e1b481

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
- name: Save actions cache
13+
uses: Catglobe/save-actions-cache@v1
14+
# Generate token for GitHub app
15+
- name: Generate token
16+
id: generate-token
17+
uses: actions/create-github-app-token@v1
18+
with:
19+
app-id: 1008511
20+
private-key: ${{ secrets.CG_ISSUE_PROCESSOR_TOKEN }}
21+
22+
# Add the issue to the project
23+
- name: Add issue to project
24+
env:
25+
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
26+
PROJECT_ID: 3
27+
ISSUE_ID: ${{ github.event.issue.number }}
28+
run: |
29+
gh project item-add $PROJECT_ID --owner Catglobe --url https://github.com/$GITHUB_REPOSITORY/issues/$ISSUE_ID
30+

0 commit comments

Comments
 (0)