mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 06:01:37 +08:00
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:
@@ -376,8 +376,12 @@ jobs:
|
|||||||
# =============================================================================
|
# =============================================================================
|
||||||
deploy-aws:
|
deploy-aws:
|
||||||
name: "T4: Deploy"
|
name: "T4: Deploy"
|
||||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
|
||||||
needs: [metadata-regen, build-site]
|
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:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user