Modify versioning in bump-version-on-merge workflow

Removed fetching tags when checking out the master branch and updated version format to exclude the latest tag.
This commit is contained in:
Antynea
2026-05-22 13:29:22 +02:00
committed by GitHub
parent 5b567255e3
commit 86345e0d38

View File

@@ -18,11 +18,10 @@ jobs:
uses: actions/checkout@v3
with:
ref: master
fetch-tags: true
- name: Update version in config
run: |
version="$(git describe --tags --abbrev=0)-$(git rev-parse --abbrev-ref HEAD)-$(date -u -Iseconds)"
version="$(git rev-parse --abbrev-ref HEAD)-$(date -u -Iseconds)"
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
- name: Commit updated config