Skip to content

Update version file

Update version file #9

Workflow file for this run

name: Update version file
on:
release:
types:
- created
jobs:
update_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update version.json
run: |
echo "{
\"version\": \"${{ github.event.release.tag_name }}\"
}" > version.json
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: update version to ${{ github.event.release.tag_name }}"