File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,25 @@ jobs:
3434 - uses : actions/checkout@v4
3535
3636 - 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."
37+ FILE=/tmp/$NAME.tar.gz
38+ 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."
4043 fi
4144 - uses : shogo82148/actions-upload-release-asset@v1
4245 with :
4346 upload_url : ${{ github.event.release.upload_url }}
4447 asset_path : /tmp/$NAME.tar.gz
4548
4649 - 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+ FILE=/tmp/$NAME.zip
51+ 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."
5056 fi
5157 - uses : shogo82148/actions-upload-release-asset@v1
5258 with :
You can’t perform that action at this time.
0 commit comments