Update File on Release #8
Workflow file for this run
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 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 latest_version.txt with release version" || true | |
git push origin ${{ github.head_ref }} |