Skip to content

Make faster

Make faster #39

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'