diff options
| author | Menny Even Danan <menny@evendanan.net> | 2020-02-06 22:19:57 +0000 |
|---|---|---|
| committer | Menny Even Danan <menny@evendanan.net> | 2020-02-06 22:21:30 +0000 |
| commit | fc71e688f3dd021ad7e89e30afd0be36af699581 (patch) | |
| tree | b639d7449264dfb283e7376a28078da6b462e916 /.github | |
| parent | 617623ab19f18e5d69fee4287b92500e15be459e (diff) | |
| download | AnySoftKeyboard-fc71e688f3dd021ad7e89e30afd0be36af699581.tar.gz AnySoftKeyboard-fc71e688f3dd021ad7e89e30afd0be36af699581.tar.bz2 | |
deploy-request only needs push-ready for deployment
Diffstat (limited to '.github')
| -rwxr-xr-x | .github/actions/deploy-request/request.sh | 2 | ||||
| -rw-r--r-- | .github/workflows/checks.yml | 9 |
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 }} |
