Skip to content

Merge pull request #45 from exoego/more-logs #8

Merge pull request #45 from exoego/more-logs

Merge pull request #45 from exoego/more-logs #8

Workflow file for this run

name: Bump major version
on:
push:
tags:
- 'v*.*.*'
jobs:
tag:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Git config
run: |
git config user.name actions-bot
git config user.email [email protected]
- name: Tag new target
run: |
major_version=$(echo "${{ github.ref_name }}" | cut -d'.' -f1)
git tag -f $major_version ${{ github.ref_name }}
- name: Push new tag
run: |
major_version=$(echo "${{ github.ref_name }}" | cut -d'.' -f1)
git push origin $major_version --force