name: Sync Release Branch
permissions: {}
on:
release:
types:
- created
jobs:
sync-release-branch:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
if: startsWith(github.event.release.tag_name, 'v1')
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@d5402286a7abdfb7232173b3228d56473feb8a66 - name: Check out the repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with:
persist-credentials: true
fetch-depth: 0
ref: v1
- name: Configure Git
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Sync Release Branch
run: |
git fetch --tags
git checkout v1
git reset --hard "${GITHUB_REF}"
git push --force