-
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
5cc5b1a
commit 47dd485
Showing
1 changed file
with
7 additions
and
7 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 |
---|---|---|
|
@@ -19,16 +19,16 @@ jobs: | |
run: | | ||
git config user.name "github-actions" | ||
git config user.email "[email protected]" | ||
- name: Remove all files except the ZIP and commit deletion | ||
run: | | ||
ls | grep -v "archive_with_hash.zip" | xargs rm -rf | ||
git add -A | ||
git commit -m "Prepare for ZIP archive update" | ||
- name: Create new local branch | ||
run: git checkout -b temp-zip-branch | ||
|
||
- name: Commit ZIP file | ||
- name: Remove all files except the ZIP | ||
run: | | ||
git rm -r --cached . | ||
git clean -fdx | ||
rm -rf * !("archive_with_hash.zip") | ||
git add archive_with_hash.zip | ||
git commit -m "Update ZIP archive with latest commit hash" | ||
- name: Force push to zip-archive branch | ||
run: git push origin HEAD:zip-archive --force | ||
run: git push origin temp-zip-branch:zip-archive --force |