forked from kettingpowered/Ketting-1-20-x
-
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.
- Loading branch information
1 parent
2c82663
commit 1108323
Showing
2 changed files
with
27 additions
and
21 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,21 @@ | ||
#!/usr/bin/env bash | ||
getVer(){ | ||
IFS='=' read -ra ARR <<< "$(grep "$1" gradle.properties)" | ||
read -r -d '' "$1" <<< "${ARR[1]}" | ||
unset IFS | ||
unset ARR | ||
} | ||
getVer MC_VERSION | ||
echo "Got MC_VERSION: $MC_VERSION" | ||
getVer FORGE_VERSION | ||
echo "Got FORGE_VERSION: $FORGE_VERSION" | ||
getVer KETTING_VERSION | ||
echo "Got KETTING_VERSION: $KETTING_VERSION" | ||
tag=v$MC_VERSION-$FORGE_VERSION-$KETTING_VERSION | ||
echo "Got tag $tag" | ||
#echo "tag=$tag" >> "$GITHUB_OUTPUT" | ||
echo "Set tag as output" | ||
#git tag "$tag" | ||
echo "Created local tag" | ||
#git push origin "$tag" | ||
echo "Pushed to remote" |