mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-10-20 02:42:03 +08:00
Update GitHub Actions to use checkout@v4
This commit is contained in:
@@ -14,19 +14,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
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="${{ github.ref_name }}"
|
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${{ github.ref_name }}/" config
|
||||||
sed -i "s/GRUB_BTRFS_VERSION=.*/GRUB_BTRFS_VERSION=${version}/" config
|
|
||||||
|
|
||||||
- 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 ${{ github.ref_name }}"
|
||||||
git push origin master
|
git push origin master
|
||||||
|
|||||||
Reference in New Issue
Block a user