This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new b2c7b64db8 Move conditional in CI "quick-image" to the job itself
(#27530)
b2c7b64db8 is described below
commit b2c7b64db84a15f7ef0f415facd85b167d106c4a
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Nov 7 00:19:32 2022 +0100
Move conditional in CI "quick-image" to the job itself (#27530)
There are no other jobs depending on that one, so we can skip
the whole job rather than each step separately (the latter approach
is needed if the job should be skipped, but the downstream jobs
should not be skipped).
---
.github/workflows/ci.yml | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4eac4a3ae0..cc7d1f0232 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -308,24 +308,21 @@ jobs:
RUNS_ON: "${{needs.build-info.outputs.runs-on}}"
UPGRADE_TO_NEWER_DEPENDENCIES: false
PLATFORM: "linux/amd64"
+ if: needs.build-info.outputs.canary-run == 'true'
steps:
- name: Cleanup repo
run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm
-rf /workspace/*"
- if: needs.build-info.outputs.canary-run == 'true'
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v3
with:
persist-credentials: false
- if: needs.build-info.outputs.canary-run == 'true'
- name: "Install Breeze"
uses: ./.github/actions/breeze
- if: needs.build-info.outputs.canary-run == 'true'
- name: "Check that image builds quickly"
run: breeze shell --max-time 120
- if: needs.build-info.outputs.canary-run == 'true'
- name: "Fix ownership"
run: breeze ci fix-ownership
- if: always() && needs.build-info.outputs.canary-run == 'true'
+ if: always()
build-ci-images:
permissions: