-
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
2576f2b
commit 4d225d3
Showing
1 changed file
with
6 additions
and
6 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,13 +19,13 @@ jobs: | |
run: | | ||
git config user.name "github-actions" | ||
git config user.email "[email protected]" | ||
- name: Create new local branch | ||
run: git checkout -b temp-zip-branch | ||
|
||
- name: Remove all files except the ZIP | ||
- name: Create orphan branch for ZIP archive | ||
run: | | ||
git checkout --orphan zip-archive | ||
git rm -rf . | ||
git clean -fdx | ||
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 temp-zip-branch:zip-archive --force | ||
- name: Force push to remote zip-archive branch | ||
run: git push origin zip-archive --force |