File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,20 +39,21 @@ jobs:
3939 run : go build -v -o cmk ./cmk.go
4040
4141 - name : Rename binary
42+ if : success()
4243 run : |
4344 mv cmk cmk.linux.x86-64.pr${{ steps.set_vars.outputs.pr_number }}
4445
4546 - name : Upload cmk binary
4647 uses : actions/upload-artifact@v4
47- if : steps.set_vars.outputs.pr_number != ''
48+ if : steps.set_vars.outputs.pr_number != '' && success()
4849 with :
4950 name : cmk.linux.x86-64.pr${{ steps.set_vars.outputs.pr_number }}
5051 path : cmk.linux.x86-64.pr${{ steps.set_vars.outputs.pr_number }}
5152 if-no-files-found : error
5253
5354 - name : Find existing PR comment
5455 id : find_comment
55- if : steps.set_vars.outputs.pr_number != ''
56+ if : always() && steps.set_vars.outputs.pr_number != ''
5657 uses : peter-evans/find-comment@v3
5758 with :
5859 issue-number : ${{ steps.set_vars.outputs.pr_number }}
6162
6263 - name : Create/update comment
6364 uses : peter-evans/create-or-update-comment@v4
64- if : steps.set_vars.outputs.pr_number != ''
65+ if : always() && steps.set_vars.outputs.pr_number != ''
6566 with :
6667 token : ${{ secrets.GITHUB_TOKEN }}
6768 issue-number : ${{ steps.set_vars.outputs.pr_number }}
You can’t perform that action at this time.
0 commit comments