Skip to content

Delete update_latest_version.yml #1

Delete update_latest_version.yml

Delete update_latest_version.yml #1

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 }}