Skip to content

Commit 9ad18ab

Browse files
committed
Skip comment is artifact is not present
1 parent f6779ff commit 9ad18ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/issue-write.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ jobs:
3333
artifact-name: workflow-args
3434

3535
- name: Unpack Artifact
36+
if: steps.download-artifact.outputs.artifact-id != ''
3637
run: |
3738
unzip ${{ steps.download-artifact.outputs.filename }}
3839
3940
- name: 'Comment on PR'
41+
if: steps.download-artifact.outputs.artifact-id != ''
4042
uses: actions/github-script@v3
4143
with:
4244
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -145,5 +147,7 @@ jobs:
145147
});
146148
147149
- name: Dump comments file
148-
if: always()
150+
if: >-
151+
always() &&
152+
steps.download-artifact.outputs.artifact-id != ''
149153
run: cat comments

0 commit comments

Comments
 (0)