Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# It RUNS ON EVERY EVENT and is never skipped. On anything that is not a pull
# request the filter steps are skipped and `web` and `city3d` are `true`, so
# push to main always runs the full suite. A skipped `changes` would be worse
# than wasteful: the deploy jobs below use the implicit `success()`, which a
# than wasteful: the `deploy` job below uses the implicit `success()`, which a
# skipped ancestor anywhere up the chain turns into a skipped deploy.
#
# `web` lists every input of the development export and of the development
Expand Down Expand Up @@ -1104,11 +1104,23 @@ jobs:
#
# `contents: read` only: deploy-frontend.yml talks to Cloudflare with an API
# token from `secrets`, not to AWS over OIDC, so it needs no `id-token`.
#
# The `if` asks what each job in `needs` did, and does NOT rely on the
# implicit `success()`. That one also looks at every ancestor, and a push to
# main always has skipped ones (the Seldon race, the hosted twins and the
# rescues), so it skipped every deploy. `needs.*.result` covers whatever
# `needs` lists: a job added there cannot be forgotten here. `!cancelled()`
# is what switches the implicit check off.
deploy-frontend:
name: Deploy frontend
needs: [quality, gates, webexport, devconsole, city3d, lockfile, test]
if: >-
${{ vars.OXY_1519_ROLLOUT_HOLD != 'true' && (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
${{ !cancelled()
&& !contains(needs.*.result, 'failure')
&& !contains(needs.*.result, 'cancelled')
&& !contains(needs.*.result, 'skipped')
&& vars.OXY_1519_ROLLOUT_HOLD != 'true'
&& github.event_name == 'push' && github.ref == 'refs/heads/main' }}
permissions:
contents: read
uses: ./.github/workflows/deploy-frontend.yml
Expand Down
Loading