From b88af4c200c0292c9ff080f1cd4f7af6a71ce793 Mon Sep 17 00:00:00 2001 From: Pierre Penninckx Date: Fri, 22 Nov 2024 22:32:24 +0100 Subject: [PATCH] bump version and add tag automatically (#360) --- .github/workflows/version.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/version.yaml b/.github/workflows/version.yaml index 3b98c4d..f8a1c46 100644 --- a/.github/workflows/version.yaml +++ b/.github/workflows/version.yaml @@ -2,8 +2,8 @@ name: Version Bump on: push: - # branches: - # - main + branches: + - main paths: - VERSION @@ -14,6 +14,9 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 1 + - name: Get version + id: vars + run: echo "version=v$(cat VERSION)" >> $GITHUB_OUTPUT - uses: rickstaa/action-create-tag@v1.7.2 with: - tag: "$(cat VERSION)" + tag: ${{ steps.vars.outputs.version }}