From cfe659b2d6c29d1f164877d94485d4252acd329e Mon Sep 17 00:00:00 2001 From: Menny Even Danan Date: Wed, 5 Feb 2020 10:08:25 -0500 Subject: full deploy workflow --- .github/actions/deploy/action.yml | 4 ++++ .github/actions/deploy/deploy.sh | 7 +++++++ 2 files changed, 11 insertions(+) (limited to '.github/actions') diff --git a/.github/actions/deploy/action.yml b/.github/actions/deploy/action.yml index e9734e5d8..11a6becc2 100644 --- a/.github/actions/deploy/action.yml +++ b/.github/actions/deploy/action.yml @@ -31,6 +31,9 @@ inputs: publish_service_account: default: "" required: false + deploy_approval_filename: + default: "" + required: false runs: using: "docker" image: "docker://menny/ndk_ask:1.13.1" @@ -42,6 +45,7 @@ runs: entrypoint: /bin/bash args: - .github/actions/deploy/deploy.sh + - ${{ inputs.deploy_approval_filename }} - ${{ inputs.ref }} - ${{ inputs.crash_report_email }} - ${{ inputs.keystore_url }} diff --git a/.github/actions/deploy/deploy.sh b/.github/actions/deploy/deploy.sh index 8561111a4..f0fadc530 100755 --- a/.github/actions/deploy/deploy.sh +++ b/.github/actions/deploy/deploy.sh @@ -1,6 +1,13 @@ #!/usr/bin/env bash set -e +DEPLOY_APPROVAL_FILENAME="${1}" +shift +if [[ -n "$DEPLOY_APPROVAL_FILENAME" ]] && [[ -f "$$DEPLOY_APPROVAL_FILENAME" ]]; then + echo "deploy approval file '${$DEPLOY_APPROVAL_FILENAME}' could not be found. Skipping deploy." + exit 0 +fi + GITHUB_REF="${1}" shift export ANYSOFTKEYBOARD_CRASH_REPORT_EMAIL="${1}" -- cgit v1.2.3