Skip to content

Commit 8fb00c5

Browse files
authored
Modify bump-version workflow for versioning
Update version retrieval method and remove fetch-tags.
1 parent 97ae297 commit 8fb00c5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/bump-version.yml

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

2221
- name: Update version in config
2322
run: |
24-
version="$(git describe --tags --abbrev=0)"
23+
version="${{ github.ref_name }}"
2524
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
2625
2726
- name: Commit updated config

0 commit comments

Comments
 (0)