Skip to content

Commit

Permalink
Added auto version increment in sfs.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Srlion committed Sep 2, 2024
1 parent 009083e commit 06ecd15
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,23 @@ jobs:
fetch-depth: "0"

- name: Bump version and push tag
id: tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INITIAL_VERSION: "2.0.3"
WITH_V: false
DEFAULT_BUMP: "patch"
RELEASE_BRANCHES: "master,main,dev"

- name: Update version file
if: steps.tag.outputs.new_tag != ''
run: sed -i 's/VERSION = "[^"]*"/VERSION = "new_version"/' sfs.lua

- name: Commit version file
if: steps.tag.outputs.new_tag != ''
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add sfs.lua
git commit -m "Update version file to ${{ steps.tag.outputs.new_tag }}"
git push origin HEAD:master

0 comments on commit 06ecd15

Please sign in to comment.