Skip to content

Commit

Permalink
Change zip folder location (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
GelbEinhalb committed May 29, 2024
1 parent 87e928c commit 1c1ab68
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/compress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ jobs:
- name: Compress project folders
run: |
for dir in projects/*; do
if [ -d "$dir" ]; then
folder_name=$(basename "$dir")
zip -r "zip/project-files-${folder_name}.zip" "$dir"
folder_name=$(basename "$dir")
if [ -d "$dir" ] && [ "$folder_name" != ".zip" ]; then
zip -r "projects/.zip/project-files-${folder_name}.zip" "$dir"
fi
done
- name: Commit Changes
run: |
git config user.name github-actions
git config user.email [email protected]
git add zip/
git add projects/.zip/
git commit -m "Compress Project Files (#5)" || true
git push origin HEAD:main

0 comments on commit 1c1ab68

Please sign in to comment.