Skip to content

Update the "latest" branch #3

Update the "latest" branch

Update the "latest" branch #3

Workflow file for this run

name: Update the "latest" branch
on:
release:
types: [published]
jobs:
update-latest-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- 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 }}