-
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.
UID2-2558 Use new commit and push workflow (#56)
- Loading branch information
1 parent
c8a1133
commit b881383
Showing
3 changed files
with
67 additions
and
45 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,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
# Gets a property out of a .properties file | ||
# usage: getProperty $key $filename | ||
function getProperty() { | ||
grep "${1}" "$2" | cut -d'=' -f2 | ||
} | ||
|
||
NEW_SNAPSHOT_VERSION=$1 | ||
CUR_SNAPSHOT_VERSION=$(getProperty 'VERSION_NAME' gradle.properties) | ||
|
||
if [ -z "$NEW_SNAPSHOT_VERSION" ]; then | ||
# If no snapshot version was provided, use the current value | ||
NEW_SNAPSHOT_VERSION=$CUR_SNAPSHOT_VERSION | ||
fi | ||
|
||
echo "new_snapshot_version=$NEW_SNAPSHOT_VERSION" >> $GITHUB_OUTPUT | ||
echo "cur_snapshot_version=$CUR_SNAPSHOT_VERSION" >> $GITHUB_OUTPUT |
This file was deleted.
Oops, something went wrong.