Skip to content

Commit

Permalink
update_stats workflow: push updates to orphan branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Aug 12, 2024
1 parent 743bbab commit b698545
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/update_stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit b698545

Please sign in to comment.