From 55971eebc3f5a6aef5b1e0cde96b3f2ece105c07 Mon Sep 17 00:00:00 2001 From: Marcelo Lynch Date: Sun, 15 Feb 2026 18:36:10 -0800 Subject: [PATCH 1/2] =?UTF-8?q?ci:=20Update=20the=20workflow=20so=20the=20?= =?UTF-8?q?chain=20doesn=E2=80=99t=20get=20skipped=20when=20upload=5Fcache?= =?UTF-8?q?=20is=20skipped?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_template.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_template.yml b/.github/workflows/build_template.yml index 544d06835ea6cf..bf2523f9fc8d35 100644 --- a/.github/workflows/build_template.yml +++ b/.github/workflows/build_template.yml @@ -655,6 +655,7 @@ jobs: post_steps: name: Post-Build Step needs: [build, upload_cache] + if: ${{ always() && needs.build.result == 'success' && (needs.upload_cache.result == 'success' || needs.upload_cache.result == 'skipped') }} runs-on: ubuntu-latest # Note these steps run on disposable GitHub runners, so no landrun sandboxing is needed. steps: From d844ff6e163fcbd97c438db5e0ed0e7cede07ac6 Mon Sep 17 00:00:00 2001 From: Bryan Gin-ge Chen Date: Sun, 15 Feb 2026 22:09:43 -0500 Subject: [PATCH 2/2] Modify post-CI job condition for dependency success Updated post-CI job condition to ensure it runs only if direct dependencies succeeded. --- .github/workflows/build_template.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_template.yml b/.github/workflows/build_template.yml index bf2523f9fc8d35..d6e25d4dc15175 100644 --- a/.github/workflows/build_template.yml +++ b/.github/workflows/build_template.yml @@ -745,7 +745,8 @@ jobs: final: name: Post-CI job - if: ${{ inputs.run_post_ci }} + # ensure that this runs iff direct dependencies succeeded even if transitive dependencies were skipped + if: ${{ always() && inputs.run_post_ci && needs.style_lint.result == 'success' && needs.build.result == 'success' && needs.post_steps.result == 'success' }} needs: [style_lint, build, post_steps] runs-on: ubuntu-latest steps: