mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 04:43:12 +00:00
fix(ci): escape graphql ids for actionlint
This commit is contained in:
parent
2df53e922e
commit
70e02f6116
1 changed files with 2 additions and 2 deletions
4
.github/workflows/auto-merge.yaml
vendored
4
.github/workflows/auto-merge.yaml
vendored
|
|
@ -42,13 +42,13 @@ jobs:
|
|||
PR_NODE_ID: ${{ github.event.pull_request.node_id }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
in_queue="$(gh api graphql -f query='query($id:ID!) { node(id:$id) { ... on PullRequest { isInMergeQueue } } }' -f id="$PR_NODE_ID" --jq '.data.node.isInMergeQueue')"
|
||||
in_queue="$(gh api graphql -f query="query(\$id:ID!) { node(id:\$id) { ... on PullRequest { isInMergeQueue } } }" -f id="$PR_NODE_ID" --jq '.data.node.isInMergeQueue')"
|
||||
if [ "$in_queue" = "true" ]; then
|
||||
echo "already in merge queue"
|
||||
exit 0
|
||||
fi
|
||||
set +e
|
||||
out="$(gh api graphql -f query='mutation($id:ID!) { enqueuePullRequest(input:{pullRequestId:$id}) { mergeQueueEntry { state } } }' -f id="$PR_NODE_ID" 2>&1)"
|
||||
out="$(gh api graphql -f query="mutation(\$id:ID!) { enqueuePullRequest(input:{pullRequestId:\$id}) { mergeQueueEntry { state } } }" -f id="$PR_NODE_ID" 2>&1)"
|
||||
status=$?
|
||||
set -e
|
||||
if [ "$status" -eq 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue