Skip to content

Update and rename sync-main-master.yml to sync-default-branch.yml #5

Update and rename sync-main-master.yml to sync-default-branch.yml

Update and rename sync-main-master.yml to sync-default-branch.yml #5

Workflow file for this run

name: Tag Major Version
on:
push: { tags: "v*.*.*" }
workflow_call:
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- env:
tag: ${{github.ref}}
run: |
tag=${tag#refs/tags/}
major=${tag%%.*}
git push -f origin "HEAD:refs/heads/$major"