1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 10:22:00 +00:00

chore: simplify project GitHub Action

This commit is contained in:
Marc Cornellà 2022-01-03 13:02:28 +01:00
parent 9dd1dc49d9
commit 512839ef78
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -43,8 +43,7 @@ jobs:
- name: Add to project
env:
ISSUE_ID: ${{ github.event.issue.node_id }}
PR_ID: ${{ github.event.pull_request.node_id }}
ISSUE_OR_PR_ID: ${{ github.event.issue.node_id || github.event.pull_request.node_id }}
run: |
item_id="$(gh api graphql -f query='
mutation($project: ID!, $item: ID!) {
@ -54,7 +53,7 @@ jobs:
}
}
}
' -f project=$PROJECT_ID -f item=${ISSUE_ID:-$PR_ID} --jq '.data.addProjectNextItem.projectNextItem.id')"
' -f project=$PROJECT_ID -f item=$ISSUE_OR_PR_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
echo "ITEM_ID=$item_id" >> $GITHUB_ENV