Skip to content

Commit 86345e0

Browse files
authored
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.
1 parent 5b56725 commit 86345e0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎.github/workflows/bump-version-on-merge.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ jobs:
1818
uses: actions/checkout@v3
1919
with:
2020
ref: master
21-
fetch-tags: true
2221

2322
- name: Update version in config
2423
run: |
25-
version="$(git describe --tags --abbrev=0)-$(git rev-parse --abbrev-ref HEAD)-$(date -u -Iseconds)"
24+
version="$(git rev-parse --abbrev-ref HEAD)-$(date -u -Iseconds)"
2625
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
2726
2827
- name: Commit updated config

0 commit comments

Comments
 (0)