Skip to content

Separate reusable workflow from repo's own test workflow. (#38) #18

Separate reusable workflow from repo's own test workflow. (#38)

Separate reusable workflow from repo's own test workflow. (#38) #18

Workflow file for this run

name: Tag Major Version
on:
push: { tags: "v*.*.*" }
workflow_dispatch:
workflow_call:
permissions: {}
jobs:
major:
if: github.ref_type == 'tag' && !contains(github.ref, '-') # skip prereleases
permissions: {contents: write}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- run: git push -f origin "HEAD:refs/heads/${GITHUB_REF_NAME%%.*}"