-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62e56de
commit 595c538
Showing
5 changed files
with
39 additions
and
24 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Set version | ||
|
||
on: | ||
# Triggers the workflow on push to master branch | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
set_version: | ||
name: Set and tag version | ||
runs-on: [ubuntu-latest] | ||
env: | ||
VERSION_FILE_NAME: VERSION | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set version | ||
id: set_version | ||
run: | | ||
version=$(cat ${{ env.VERSION_FILE_NAME }} | tr -d '\r').$GITHUB_RUN_NUMBER | ||
echo "VERSION=$version" >> $GITHUB_ENV | ||
- name: Tag new version | ||
run: git tag v${{ env.VERSION }} | ||
|
||
- name: Push tags | ||
uses: ad-m/github-push-action@master | ||
with: | ||
tags: true |
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
Submodule modules
updated
7 files
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