mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Fixed: Fix pull request APKs commit hash
This commit is contained in:
parent
5e820ad249
commit
caa13b7047
1 changed files with 5 additions and 0 deletions
5
.github/workflows/debug_build.yml
vendored
5
.github/workflows/debug_build.yml
vendored
|
|
@ -21,6 +21,11 @@ jobs:
|
||||||
exit_on_error() { echo "$1"; exit 1; }
|
exit_on_error() { echo "$1"; exit 1; }
|
||||||
|
|
||||||
echo "Setting vars"
|
echo "Setting vars"
|
||||||
|
|
||||||
|
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
|
||||||
|
GITHUB_SHA="${{ github.event.pull_request.head.sha }}" # Do not use last merge commit set in GITHUB_SHA
|
||||||
|
fi
|
||||||
|
|
||||||
# Set RELEASE_VERSION_NAME to "<CURRENT_VERSION_NAME>+<last_commit_hash>"
|
# Set RELEASE_VERSION_NAME to "<CURRENT_VERSION_NAME>+<last_commit_hash>"
|
||||||
CURRENT_VERSION_NAME_REGEX='\s+versionName "([^"]+)"$'
|
CURRENT_VERSION_NAME_REGEX='\s+versionName "([^"]+)"$'
|
||||||
CURRENT_VERSION_NAME="$(grep -m 1 -E "$CURRENT_VERSION_NAME_REGEX" ./app/build.gradle | sed -r "s/$CURRENT_VERSION_NAME_REGEX/\1/")"
|
CURRENT_VERSION_NAME="$(grep -m 1 -E "$CURRENT_VERSION_NAME_REGEX" ./app/build.gradle | sed -r "s/$CURRENT_VERSION_NAME_REGEX/\1/")"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue