From ca1d17b03fe6a4c1ae7861e5216f17dcf11bd220 Mon Sep 17 00:00:00 2001 From: Robin Elfrink Date: Wed, 8 May 2024 12:40:38 +0200 Subject: [PATCH] chore: add manual workflow to calculate the next release tag Add workflow to calculate the next release tag based on conventional commits. As a result new release tags will be prepended with a 'v'. Signed-off-by: Robin Elfrink --- .github/workflows/tag.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/tag.yaml diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml new file mode 100644 index 0000000..3fb1cfd --- /dev/null +++ b/.github/workflows/tag.yaml @@ -0,0 +1,25 @@ +name: tag + +on: + workflow_dispatch: + branches: + - main + +jobs: + tag: + name: tag + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: determine next tag + uses: mathieudutour/github-tag-action@v6.2 + id: tag + with: + dry_run: true + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: show tag and changelog + run: | + echo "Tag: ${{ steps.tag.outputs.new_tag }}" + echo "Changelog:" + echo "${{ steps.tag.outputs.changelog }}"