Update version on build.zig.zon #4
This file contains 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: Update version on build.zig.zon | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get latest version | |
run: echo "LIMINE_VERSION=$(curl https://api.github.com/repos/limine-bootloader/limine/releases/latest -s | jq .name -r | sed 's/v//g')" >> $GITHUB_ENV | |
- name: Update version | |
run: sed "s/LIMINE_VERSION/${{ env.LIMINE_VERSION }}/g" build.zig.zon.template > build.zig.zon | |
- name: Push changes | |
run: | | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config user.name "github-actions[bot]" | |
git commit -am "Update to v${{ env.LIMINE_VERSION }}" | |
git push |