Skip to content

Tag and Release

Tag and Release #38

Workflow file for this run

name: Tag and Release
on:
workflow_run:
workflows:
- CI
branches:
- main
types:
- completed
jobs:
release:
name: Create new release tag
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: version_bump
uses: anothrNick/github-tag-action@1.69.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
DEFAULT_BUMP: patch
WITH_V: true
- uses: ncipollo/release-action@v1
with:
tag: "${{ steps.version_bump.outputs.new_tag }}"
generateReleaseNotes: true
skipIfReleaseExists: true