ci: fix deploy-aws skipped due to upstream always() propagation

When build-site uses always() in its if condition, the skipped status
from its upstream dependencies propagates to deploy-aws which lacks
always(). Add always() with explicit success checks to ensure deploy
runs when both metadata-regen and build-site succeed.

Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
Ramon Roche 2026-02-11 14:57:40 -08:00
parent 36b5e1e1bb
commit 8bb1e44c10

View File

@ -376,8 +376,12 @@ jobs:
# =============================================================================
deploy-aws:
name: "T4: Deploy"
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
needs: [metadata-regen, build-site]
if: >-
always() &&
needs.metadata-regen.result == 'success' &&
needs.build-site.result == 'success' &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch')
permissions:
id-token: write
runs-on: ubuntu-latest