We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9f8c17 commit 1e1b481Copy full SHA for 1e1b481
.github/workflows/add-issue-to-project.yaml
@@ -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