bump version and add tag automatically

This commit is contained in:
ibizaman 2024-11-22 22:19:02 +01:00
parent c690b0faf7
commit 4984dec646

View file

@ -2,8 +2,8 @@ name: Version Bump
on: on:
push: push:
# branches: branches:
# - main - main
paths: paths:
- VERSION - VERSION
@ -14,6 +14,9 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 1 fetch-depth: 1
- name: Get version
id: vars
run: echo "version=v$(cat VERSION)" >> $GITHUB_OUTPUT
- uses: rickstaa/action-create-tag@v1.7.2 - uses: rickstaa/action-create-tag@v1.7.2
with: with:
tag: "$(cat VERSION)" tag: ${{ steps.vars.outputs.version }}