Skip to content

Tag and Release

Tag and Release #48

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: version_bump
uses: anothrNick/[email protected]
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