mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
Stateless Versioning (#293)
This commit is contained in:
parent
d0e95871ff
commit
22ffb71c35
2 changed files with 3 additions and 11 deletions
13
.github/workflows/create_tag.yml
vendored
13
.github/workflows/create_tag.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Increment version and create tag
|
||||
name: Create tag
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
|
||||
- name: Get current version
|
||||
run: |
|
||||
VERSION=$(cat version | grep version: | awk '{print $2}')
|
||||
VERSION=$(git describe --abbrev=0 --tags)
|
||||
|
||||
- name: Increment version
|
||||
run: |
|
||||
|
|
@ -45,15 +45,8 @@ jobs:
|
|||
|
||||
# Update the version
|
||||
NEW_VERSION="v$MAJOR.$MINOR.$PATCH"
|
||||
sed -i "s/version: $VERSION/version: $NEW_VERSION/" version
|
||||
|
||||
- name: Commit and push changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "Release $NEW_VERSION"
|
||||
push: true
|
||||
|
||||
- name: Create tag
|
||||
run: |
|
||||
git tag $NEW_VERSION
|
||||
git push origin $NEW_VERSION
|
||||
git push --tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue