Tag Release Canditate #6
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: Tag Release Canditate | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Release canditate version (e.g. v0.1.0-rc.0)' | |
required: true | |
message: | |
description: 'Tag message' | |
required: true | |
concurrency: | |
group: tag-${{ github.ref }}-1 | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
create-tag: | |
runs-on: ubuntu-22.04 | |
env: | |
VERSION: ${{ github.event.inputs.version }} | |
MESSAGE: ${{ github.event.inputs.message }} | |
BRANCH: main | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set git config | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "<>" | |
- name: Tag | |
run: | | |
git tag $VERSION -m "$MESSAGE" | |
git push origin $VERSION |