-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added auto version increment in sfs.lua
- Loading branch information
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |