From 4e1274722668ae1447e707c0cb5b7eb1b1dbfa0f Mon Sep 17 00:00:00 2001 From: Antynea Date: Sat, 30 May 2026 14:33:34 +0200 Subject: [PATCH] Update GitHub Actions to use checkout@v4 --- .github/workflows/bump-version-on-merge.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bump-version-on-merge.yml b/.github/workflows/bump-version-on-merge.yml index caf18a2..b457be8 100644 --- a/.github/workflows/bump-version-on-merge.yml +++ b/.github/workflows/bump-version-on-merge.yml @@ -15,19 +15,20 @@ jobs: if: github.actor != 'github-actions[bot]' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: master - name: Update version in config run: | - version="$(git rev-parse --abbrev-ref HEAD)-$(date -u -Iseconds)" + version="master-$(date -u -Iseconds)" sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config + echo "VERSION=${version}" >> $GITHUB_ENV - 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 commit -m "chore: bump version to ${{ env.VERSION }}" git push origin master