Skip to content

[WIP] Github action to create a tag on merge to main #1

[WIP] Github action to create a tag on merge to main

[WIP] Github action to create a tag on merge to main #1

name: Tag on merge to main
on:
push:
branches:
- main
pull_request:
jobs:
tag:
runs-on: ubuntu-latest
steps:
- id: compute-tag
uses: craig-day/compute-tag@v15
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
version_scheme: continuous
version_type: minor
- id: create-tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.compute-tag.outputs.next_tag }}
tag_prefix: ''