aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.github/actions/deploy-request/request.sh2
-rw-r--r--.github/workflows/checks.yml9
2 files changed, 9 insertions, 2 deletions
diff --git a/.github/actions/deploy-request/request.sh b/.github/actions/deploy-request/request.sh
index e784ef7b3..ef83be9a0 100755
--- a/.github/actions/deploy-request/request.sh
+++ b/.github/actions/deploy-request/request.sh
@@ -17,7 +17,7 @@ function deployment_request() {
--arg jsonRef "${REF_TO_DEPLOY}" \
--arg jsonDeployTarget "${1}" \
--arg jsonDescription "${2}" \
- '{ ref: $jsonRef, task: "deploy", auto_merge: false, environment: $jsonDeployTarget, description: $jsonDescription }' )
+ '{ ref: $jsonRef, task: "deploy", auto_merge: false, environment: $jsonDeployTarget, description: $jsonDescription, required_contexts=[ "push-ready" ] }' )
local JSON_FILENAME="${TEMP_FOLDER}/deployment_request_${1}.json"
echo "${JSON_TEXT}" > "${JSON_FILENAME}"
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 7359cba43..dde05f860 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -182,12 +182,19 @@ jobs:
name: fdroid-metadata-dry-run
path: outputs/fdroid
- deploy-request:
+ push-ready:
if: github.event_name == 'push'
needs: [setup, checks, app-all-sdks-tests, app-tests-shards, app-less-tests]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
+
+ deploy-request:
+ if: github.event_name == 'push'
+ needs: [push-ready]
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v2
- uses: ./.github/actions/deploy-request
with:
ref: ${{ github.ref }}