Skip to content

Commit 4e12747

Browse files
authored
Update GitHub Actions to use checkout@v4
1 parent d785137 commit 4e12747

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/bump-version-on-merge.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@ jobs:
1515
if: github.actor != 'github-actions[bot]'
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
ref: master
2121

2222
- name: Update version in config
2323
run: |
24-
version="$(git rev-parse --abbrev-ref HEAD)-$(date -u -Iseconds)"
24+
version="master-$(date -u -Iseconds)"
2525
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
26+
echo "VERSION=${version}" >> $GITHUB_ENV
2627
2728
- name: Commit updated config
2829
run: |
2930
git config user.name "github-actions[bot]"
3031
git config user.email "github-actions[bot]@users.noreply.github.com"
3132
git add config
32-
git commit -m "chore: bump version to ${version}"
33+
git commit -m "chore: bump version to ${{ env.VERSION }}"
3334
git push origin master

0 commit comments

Comments
 (0)