File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 33
33
qhelp :
34
34
runs-on : ubuntu-latest
35
35
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 }}
37
39
- uses : actions/upload-artifact@v2
38
40
with :
39
41
name : comment
85
87
run : |
86
88
# Find the latest comment starting with "QHelp previews"
87
89
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
89
91
env :
90
92
GITHUB_TOKEN : ${{ github.token }}
93
+ PR_NUMBER : ${{ github.event.number }}
91
94
92
95
- uses : actions/upload-artifact@v2
93
96
with :
You can’t perform that action at this time.
0 commit comments