aboutsummaryrefslogtreecommitdiff
path: root/.github/actions
diff options
context:
space:
mode:
authorMenny Even Danan <menny@evendanan.net>2020-02-05 15:08:25 +0000
committerMenny Even Danan <menny@evendanan.net>2020-02-05 15:08:25 +0000
commitcfe659b2d6c29d1f164877d94485d4252acd329e (patch)
tree24db756f37eb85c2e3a97f3394be183e9f27fd44 /.github/actions
parenteccb55d1e9c08cef35e2bf71513fa3d25467b471 (diff)
downloadAnySoftKeyboard-cfe659b2d6c29d1f164877d94485d4252acd329e.tar.gz
AnySoftKeyboard-cfe659b2d6c29d1f164877d94485d4252acd329e.tar.bz2
full deploy workflow
Diffstat (limited to '.github/actions')
-rw-r--r--.github/actions/deploy/action.yml4
-rwxr-xr-x.github/actions/deploy/deploy.sh7
2 files changed, 11 insertions, 0 deletions
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}"