Skip to content

chore(deps): bump amannn/action-semantic-pull-request from 5.3.0 to 5… #31

chore(deps): bump amannn/action-semantic-pull-request from 5.3.0 to 5…

chore(deps): bump amannn/action-semantic-pull-request from 5.3.0 to 5… #31

name: Bump version and release
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@fcfbdceb3093f6d85a3b194740f8c6cec632f4e2 #v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Update major version tag
env:
new_version: ${{ steps.tag_version.outputs.new_tag }}
run: |
major_version=$(echo "$new_version" | cut -d '.' -f 1)
git config user.name actions-bot
git config user.email [email protected]
git tag -f $major_version $GITHUB_SHA
git push origin $major_version --force
- name: Create a GitHub release
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 #v1.13.0
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}