Update GitHub Actions to use checkout@v4

This commit is contained in:
Antynea
2026-05-30 14:33:34 +02:00
committed by GitHub
parent d785137f55
commit 4e12747226
+4 -3
View File
@@ -15,19 +15,20 @@ jobs:
if: github.actor != 'github-actions[bot]' if: github.actor != 'github-actions[bot]'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: master ref: master
- name: Update version in config - name: Update version in config
run: | 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 sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
echo "VERSION=${version}" >> $GITHUB_ENV
- name: Commit updated config - name: Commit updated config
run: | run: |
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
git add config git add config
git commit -m "chore: bump version to ${version}" git commit -m "chore: bump version to ${{ env.VERSION }}"
git push origin master git push origin master