Skip to content

Commit 3162276

Browse files
authored
Update GitHub Actions to use checkout@v4
1 parent 3979c53 commit 3162276

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/bump-version.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,18 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
ref: master
2020

2121
- name: Update version in config
2222
run: |
23-
version="${{ github.ref_name }}"
24-
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
23+
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${{ github.ref_name }}/" config
2524
2625
- name: Commit updated config
2726
run: |
2827
git config user.name "github-actions[bot]"
2928
git config user.email "github-actions[bot]@users.noreply.github.com"
3029
git add config
31-
git commit -m "chore: bump version to ${version}"
30+
git commit -m "chore: bump version to ${{ github.ref_name }}"
3231
git push origin master

0 commit comments

Comments
 (0)