File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 qhelp :
3434 runs-on : ubuntu-latest
3535 steps :
36- - run : echo "${{ github.event.number }}" > pr_number.txt
36+ - run : echo "${PR_NUMBER}" > pr_number.txt
37+ env :
38+ PR_NUMBER : ${{ github.event.number }}
3739 - uses : actions/upload-artifact@v2
3840 with :
3941 name : comment
8587 run : |
8688 # Find the latest comment starting with "QHelp previews"
8789 COMMENT_PREFIX="QHelp previews"
88- gh api "repos/${{ github.repository }} /issues/${{ github.event.number } }/comments" --paginate --jq "[.[] | select(.body|startswith(\"${COMMENT_PREFIX}\")) | .id] | max" > comment_id.txt
90+ gh api "repos/${GITHUB_REPOSITORY} /issues/${PR_NUMBER }/comments" --paginate --jq "[.[] | select(.body|startswith(\"${COMMENT_PREFIX}\")) | .id] | max" > comment_id.txt
8991 env :
9092 GITHUB_TOKEN : ${{ github.token }}
93+ PR_NUMBER : ${{ github.event.number }}
9194
9295 - uses : actions/upload-artifact@v2
9396 with :
You can’t perform that action at this time.
0 commit comments