Files
grub-btrfs/.github/workflows/bump-version.yml
Antynea 8fb00c532a Modify bump-version workflow for versioning
Update version retrieval method and remove fetch-tags.
2026-05-22 13:33:34 +02:00

33 lines
761 B
YAML

name: Bump version on tag
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
bump-version:
name: Bump version in config
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: master
- name: Update version in config
run: |
version="${{ github.ref_name }}"
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
- name: Commit updated config
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add config
git commit -m "chore: bump version to ${version}"
git push origin master