We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eba303d commit 942388eCopy full SHA for 942388e
.github/workflows/qhelp-pr-preview.yml
@@ -89,7 +89,7 @@ jobs:
89
run: |
90
# Find the latest comment starting with "QHelp previews"
91
COMMENT_PREFIX="QHelp previews"
92
- gh api "repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/comments" --paginate --jq "[.[] | select(.body|startswith(\"${COMMENT_PREFIX}\")) | .id] | max" > comment_id.txt
+ gh api "repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/comments" --paginate | jq --arg prefix "${COMMENT_PREFIX}" '[.[] | select(.body|startswith($prefix)) | .id] | max' > comment_id.txt
93
env:
94
GITHUB_TOKEN: ${{ github.token }}
95
PR_NUMBER: ${{ github.event.number }}
0 commit comments