File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 89
89
- name : Save PR number
90
90
run : |
91
91
mkdir -p pr
92
- echo ${{ github.event.pull_request.number }} > pr/NR
92
+ echo ${PR_NUMBER} > pr/NR
93
+ env :
94
+ PR_NUMBER : ${{ github.event.pull_request.number }}
93
95
- name : Upload PR number
94
96
uses : actions/upload-artifact@v3
95
97
with :
96
98
name : pr
97
99
path : pr/
100
+ - name : Save comment ID (if it exists)
101
+ run : |
102
+ mkdir -p comment
103
+ # Find the latest comment starting with COMMENT_PREFIX
104
+ COMMENT_PREFIX=":warning: The head of this PR and the base branch were compared for differences in the framework coverage reports."
105
+ gh api "repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/comments" --paginate | jq --arg prefix "${COMMENT_PREFIX}" '[.[] | select(.body|startswith($prefix)) | .id] | max' > comment/ID
106
+ env :
107
+ GITHUB_TOKEN : ${{ github.token }}
108
+ PR_NUMBER : ${{ github.event.pull_request.number }}
109
+ - name : Upload comment ID (if it exists)
110
+ uses : actions/upload-artifact@v3
111
+ with :
112
+ name : comment
113
+ path : comment/
You can’t perform that action at this time.
0 commit comments