Skip to content

Ready to be 3.3.0

Ready to be 3.3.0 #38

name: Update major version and latest tag
on:
push:
tags:
- 'v*'
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nowsprinting/check-version-format-action@v3
id: version
with:
prefix: v
- name: Update major version and latest tag
run: |
git push --force origin 'HEAD:refs/heads/${{ steps.version.outputs.major_prerelease }}'
git push --force origin 'HEAD:refs/heads/latest'
if: steps.version.outputs.is_valid == 'true'