Delete update_latest_version.yml #1
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 Latest Version | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
update_version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Create and switch to new branch | |
run: | | |
git checkout -b update-latest-version | |
- name: Update version | |
run: echo ${{ github.ref }} > latest_version.txt | |
- name: Commit and push changes | |
run: | | |
git config user.name "GitHub Action" | |
git config user.email "action@github.com" | |
git add latest_version.txt | |
git commit -m "Update latest version" | |
git push origin update-latest-version | |
- name: Switch back to the default branch | |
run: git checkout ${{ github.ref }} |