#423 remove unneeded log messages (#435) #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bump version on merge | |
| on: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: write | |
| jobs: | |
| bump-version: | |
| name: Bump version in config | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'github-actions[bot]' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: master | |
| - name: Update version in config | |
| run: | | |
| 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 ${{ env.VERSION }}" | |
| git push origin master |