File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments