Skip to content

Commit

Permalink
Switch from Third-Party Git Push Action
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherzog authored Jul 30, 2023
1 parent 2b1ae1c commit 9d2e1dc
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/update-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Push to latest branch
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'latest'
force: true
- name: Push to "latest" branch
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git checkout main
git branch -f latest
git push https://${GH_TOKEN}@github.com/${GITHUB_REPOSITORY} latest --force
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9d2e1dc

Please sign in to comment.