-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Soule BA <[email protected]>
- Loading branch information
Showing
3 changed files
with
10 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,20 +11,21 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Push nightly tag | ||
shell: bash | ||
run: | | ||
git config --global user.name "Soule BA" | ||
git config --global user.email "[email protected]" | ||
# Get the latest release tag | ||
git fetch 'refs/tags/*:refs/tags/*' | ||
DESCRIBE=$(git tag -l --sort=-v:refname | grep -v nightly | head -n 1) | ||
MAJOR_VERSION=$(echo $DESCRIBE | awk '{split($0,a,"."); print a[1]}') | ||
MINOR_VERSION=$(echo $DESCRIBE | awk '{split($0,a,"."); print a[2]}') | ||
PATCH_VERSION=$(echo $DESCRIBE | awk '{split($0,a,"."); print a[3]}') | ||
PATCH_NUMBER=$(echo $DESCRIBE | awk '{split($0,a,"."); print a[4]}') | ||
TAG="${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION} | ||
TAG="${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}" | ||
if [[ "$PATCH_NUMBER" =~ ^[0-9]+$ ]]; then | ||
TAG="${TAG}.${PATCH_NUMBER}" | ||
fi | ||
|
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