-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed previous tag and commit id (#36)
Signed-off-by: burakberkkeskin <[email protected]>
- Loading branch information
1 parent
3ed41a2
commit cf90980
Showing
2 changed files
with
3 additions
and
3 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 |
---|---|---|
|
@@ -23,9 +23,9 @@ jobs: | |
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git fetch --tags --force | ||
previousTag=$(git tag --sort=-v:refname | grep -v '\-beta' | grep -v '\-alpha' | head -n 1 | tail -n 1) | ||
previousTag=$(git tag --sort=-v:refname | grep -v '\-beta' | grep -v '\-alpha' | head -n 2 | tail -n 1) | ||
version=$(git describe --tags --abbrev=0) | ||
commitId=$(git rev-parse --short $version) | ||
commitId=$(git --no-pager log -1 --oneline | awk '{print $1}') | ||
releaseBinary=true | ||
if [[ "${version}" == *"beta"* || "${version}" == *"alpha"* ]]; then | ||
echo "Tag contains beta or alpha, skipping release." | ||
|
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