File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,12 @@ jobs:
129
129
130
130
- uses : actions/checkout@v3
131
131
132
+ - name : Checkout PR branch (issue_comment)
133
+ if : github.event_name == 'issue_comment'
134
+ env :
135
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
136
+ run : gh pr checkout ${{ github.event.issue.number }}
137
+
132
138
# If triggered by issue comment, the event payload doesn't directly contain the head and base sha from the PR.
133
139
# But, we can retrieve this info from some commands.
134
140
- name : Get PR metadata (issue_comment)
@@ -140,8 +146,6 @@ jobs:
140
146
export PR_NUMBER=${{ github.event.issue.number }}
141
147
echo "PR_NUMBER=${PR_NUMBER}" >> $GITHUB_OUTPUT
142
148
143
- gh pr checkout ${PR_NUMBER}
144
-
145
149
export BASELINE_SHA=$(git merge-base --fork-point master)
146
150
echo "BASELINE_SHA=${BASELINE_SHA}" >> $GITHUB_OUTPUT
147
151
@@ -768,7 +772,7 @@ jobs:
768
772
if : github.event_name == 'issue_comment' && env.FAILED == 'true'
769
773
uses :
myrotvorets/[email protected]
770
774
with :
771
- sha : ${{ steps.compute-metadata .outputs.comparison-sha }}
775
+ sha : ${{ steps.comment-branch .outputs.head_sha }}
772
776
token : ${{ secrets.GITHUB_TOKEN }}
773
777
context : Regression Detection Suite
774
778
status : ' failure'
You can’t perform that action at this time.
0 commit comments