dd7f0f22111bff8145c46f9638c0c95cbc143ce3

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

chore: let's try again

Diff

 1diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml
 2index 7559060d5b3323e0200987e5dfbead2dbb1c8429..0fe897587ee20f1132e65c777ba810a582db8f32 100644
 3--- a/.github/workflows/project.yml
 4+++ b/.github/workflows/project.yml
 5@@ -12,11 +12,12 @@ jobs:
 6     steps:
 7       - name: Read project data
 8         env:
 9+          GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
10           ORGANIZATION: ohmyzsh
11           PROJECT_NUMBER: "1"
12         run: |
13           # Get Project data
14-          gh api graphql -f query='
15+          GITHUB_TOKEN=$GITHUB_TOKEN gh api graphql -f query='
16             query($org: String!, $number: Int!) {
17               organization(login: $org){
18                 projectNext(number: $number) {
19@@ -41,6 +42,7 @@ jobs:
20 
21       - name: Add to project
22         env:
23+          GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
24           ISSUE_ID: ${{ github.event.issue.node_id }}
25           PR_ID: ${{ github.event.pull_request.node_id }}
26         run: |
27@@ -58,6 +60,8 @@ jobs:
28 
29       - name: Classify Pull Request
30         if: github.event_name == 'pull_request_target'
31+        env:
32+          GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
33         run: |
34           gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files.[].path' | awk -F/ '
35             /^plugins\// {
36@@ -87,6 +91,8 @@ jobs:
37 
38       - name: Fill Pull Request fields in project
39         if: github.event_name == 'pull_request_target'
40+        env:
41+          GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
42         run: |
43           gh api graphql -f query='
44             mutation (