Release #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release" | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Create release tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository (full-depth) | |
uses: actions/checkout@v4 | |
with: { fetch-depth: 0 } # Required to determine version | |
- name: Get next release version | |
uses: dronetag/actions/get-next-version@main | |
id: get-next-version | |
- name: Create the tag (if it does not exist yet) | |
run: | | |
git show-ref --tags --verify --quiet "refs/tags/v${{ steps.get-next-version.outputs.version }}" && exit 0 | |
git config --local user.email "" && git config --local user.name "GitHub Action" | |
git tag v${{ steps.get-next-version.outputs.version }} | |
git push origin v${{ steps.get-next-version.outputs.version }} |