-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4a8526
commit 0c1e30f
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,11 @@ jobs: | |
git config user.name "github-actions" | ||
git config user.email "[email protected]" | ||
- name: Remove all files except the ZIP | ||
run: | | ||
ls | grep -v "archive_with_hash.zip" | xargs rm -rf | ||
run: find . -mindepth 1 ! -name "archive_with_hash.zip" ! -name "." ! -name ".." -exec rm -rf {} + | ||
- name: Commit ZIP file | ||
run: | | ||
git add archive_with_hash.zip | ||
git commit -m "Update ZIP archive with latest commit hash" | ||
git add archive_with_hash.zip -f | ||
git add -u | ||
git commit -m "Update ZIP archive with latest commit hash" || echo "No changes to commit" | ||
- name: Force push to zip-archive branch | ||
run: git push origin HEAD:zip-archive --force |