Skip to content

v2.4.3 Auto update

v2.4.3 Auto update #16

name: Update File on Release
on:
release:
types:
- created
jobs:
update-file:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update file with release version
run: |
echo "${{ github.event.release.tag_name }}" > latest_version.txt
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add latest_version.txt
git commit -m "Update version.txt with release version" || true
git push origin HEAD:main