summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2022-01-02 03:32:07 +0100
committerMarc Cornellà <hello@mcornella.com>2022-01-02 03:32:48 +0100
commitdd7f0f22111bff8145c46f9638c0c95cbc143ce3 (patch)
tree0f5143e25675fc940415c34db9a0c2ca5d84ebfc /.github
parent17c52ccfc9b06d45f041b24af35d1804d645620f (diff)
downloadzsh-dd7f0f22111bff8145c46f9638c0c95cbc143ce3.tar.gz
zsh-dd7f0f22111bff8145c46f9638c0c95cbc143ce3.tar.bz2
zsh-dd7f0f22111bff8145c46f9638c0c95cbc143ce3.zip
chore: let's try again
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/project.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml
index 7559060d5..0fe897587 100644
--- a/.github/workflows/project.yml
+++ b/.github/workflows/project.yml
@@ -12,11 +12,12 @@ jobs:
steps:
- name: Read project data
env:
+ GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
ORGANIZATION: ohmyzsh
PROJECT_NUMBER: "1"
run: |
# Get Project data
- gh api graphql -f query='
+ GITHUB_TOKEN=$GITHUB_TOKEN gh api graphql -f query='
query($org: String!, $number: Int!) {
organization(login: $org){
projectNext(number: $number) {
@@ -41,6 +42,7 @@ jobs:
- name: Add to project
env:
+ GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
ISSUE_ID: ${{ github.event.issue.node_id }}
PR_ID: ${{ github.event.pull_request.node_id }}
run: |
@@ -58,6 +60,8 @@ jobs:
- name: Classify Pull Request
if: github.event_name == 'pull_request_target'
+ env:
+ GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
run: |
gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files.[].path' | awk -F/ '
/^plugins\// {
@@ -87,6 +91,8 @@ jobs:
- name: Fill Pull Request fields in project
if: github.event_name == 'pull_request_target'
+ env:
+ GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
run: |
gh api graphql -f query='
mutation (