Skip to content

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 "actions@github.com"
git checkout main
git branch -f latest
git push https://${GH_TOKEN}@github.com/${GITHUB_REPOSITORY} latest --force
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}