bump version and add tag automatically (#360)

This commit is contained in:
Pierre Penninckx 2024-11-22 22:32:24 +01:00 committed by GitHub
parent c690b0faf7
commit b88af4c200
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 }}