Skip to content

Update update_latest_versions.yml #11

Update update_latest_versions.yml

Update update_latest_versions.yml #11

name: Update File on Release
on:
release:
types:
- created
jobs:
update-file:
runs-on: ubuntu-latest
steps:
- name: Checkout repository

Check failure on line 13 in .github/workflows/update_latest_versions.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update_latest_versions.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
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 HEAD:main