mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
chore: simplify project GitHub Action
This commit is contained in:
parent
9dd1dc49d9
commit
512839ef78
1 changed files with 2 additions and 3 deletions
5
.github/workflows/project.yml
vendored
5
.github/workflows/project.yml
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue