Skip to content

Commit 0c31350

Browse files
error handling
1 parent 1ea489f commit 0c31350

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,21 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v4
3535

36-
- run: tar -czf /tmp/$NAME.tar.gz .
36+
- run: |
37+
tar -czf /tmp/$NAME.tar.gz .
38+
if [ -f /tmp/$NAME.tar.gz ]; then; else
39+
echo "error:: title=Missing File::File /tmp/$NAME.tar.gz does not exist."
40+
fi
3741
- uses: shogo82148/actions-upload-release-asset@v1
3842
with:
3943
upload_url: ${{ github.event.release.upload_url }}
4044
asset_path: /tmp/$NAME.tar.gz
4145

42-
- run: zip -r /tmp/$NAME.zip .
46+
- run: |
47+
zip -r /tmp/$NAME.zip .
48+
if [ -f /tmp/$NAME.zip ]; then; else
49+
echo "error:: title=Missing File::File /tmp/$NAME.zip does not exist."
50+
fi
4351
- uses: shogo82148/actions-upload-release-asset@v1
4452
with:
4553
upload_url: ${{ github.event.release.upload_url }}

0 commit comments

Comments
 (0)