bump version and add tag automatically (#360)
This commit is contained in:
parent
c690b0faf7
commit
b88af4c200
1 changed files with 6 additions and 3 deletions
9
.github/workflows/version.yaml
vendored
9
.github/workflows/version.yaml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue