generated from CCA-Software-Group/py_template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update_stats workflow: push updates to orphan branch
- Loading branch information
1 parent
743bbab
commit b698545
Showing
1 changed file
with
13 additions
and
0 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 |
---|---|---|
|
@@ -56,3 +56,16 @@ jobs: | |
run: | | ||
echo ${{ hashFiles('./cache') }} >> ~/.cache_key | ||
- name: Create and push to orphan branch 'cache' | ||
run: | | ||
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | ||
git config --global user.name "github-actions-bot" | ||
git config --global user.email "[email protected]" | ||
git checkout --orphan cache | ||
git rm -rf . | ||
git add cache | ||
git commit -m "update cache" | ||
git push -f --set-upstream origin cache | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |