Skip to content

Commit 1c64b0e

Browse files
1 parent c4d61e0 commit 1c64b0e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ jobs:
3636
- run: |
3737
FILE=/tmp/$NAME.tar.gz
3838
tar -czf $FILE .
39-
if [ -f $FILE ]; then
40-
echo "File $FILE exists."
41-
else
42-
echo "error:: title=Missing File::File $FILE does not exist."
43-
fi
39+
[ ! -f $FILE ] "error:: title=Missing File::File $FILE does not exist."
4440
- uses: shogo82148/actions-upload-release-asset@v1
4541
with:
4642
upload_url: ${{ github.event.release.upload_url }}
@@ -49,11 +45,7 @@ jobs:
4945
- run: |
5046
FILE=/tmp/$NAME.zip
5147
zip -r $FILE .
52-
if [ -f $FILE ]; then
53-
echo "File $FILE exists."
54-
else
55-
echo "error:: title=Missing File::File $FILE does not exist."
56-
fi
48+
[ ! -f $FILE ] "error:: title=Missing File::File $FILE does not exist."
5749
- uses: shogo82148/actions-upload-release-asset@v1
5850
with:
5951
upload_url: ${{ github.event.release.upload_url }}

0 commit comments

Comments
 (0)