Skip to content

Commit 91fd92c

Browse files
authored
Update publish.yml : fix of directory not exists
1 parent 5d7b80f commit 91fd92c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,12 @@ jobs:
8585
echo "exists=true" >> $GITHUB_OUTPUT
8686
8787
dir=_base
88-
cd $dir
89-
touch _config.txt
90-
zip -r -9 ../_output/Help-.zip .
91-
cd ..
88+
if [ -d "$dir" ]; then
89+
cd $dir
90+
touch _config.txt
91+
zip -r -9 ../_output/Help-.zip .
92+
cd ..
93+
fi
9294
9395
echo "Bundling finished."
9496

0 commit comments

Comments
 (0)