Skip to content

Commit

Permalink
Create update_version (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Memurame authored Jun 21, 2024
1 parent c7557f7 commit 39404e3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update_version
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update Release Version

on:
release:
types: [published]

jobs:
update-version:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Get release tag
id: get_tag
run: echo "RELEASE_TAG=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV

- name: Create release version file
run: echo "${{ env.RELEASE_TAG }}" > release_version.txt

- name: Commit release version file
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add release_version.txt
git commit -m "Update release version to ${{ env.RELEASE_TAG }}"
git push

0 comments on commit 39404e3

Please sign in to comment.