mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-10-20 02:42:03 +08:00
Modify bump-version workflow for versioning
Update version retrieval method and remove fetch-tags.
This commit is contained in:
@@ -17,11 +17,10 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
fetch-tags: true
|
|
||||||
|
|
||||||
- name: Update version in config
|
- name: Update version in config
|
||||||
run: |
|
run: |
|
||||||
version="$(git describe --tags --abbrev=0)"
|
version="${{ github.ref_name }}"
|
||||||
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
|
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
|
||||||
|
|
||||||
- name: Commit updated config
|
- name: Commit updated config
|
||||||
|
|||||||
Reference in New Issue
Block a user