This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-0-test by this push:
     new d902c7f3a32 [v3-0-test] Improve condition for pushing the cache for 
images (#54415) (#54418)
d902c7f3a32 is described below

commit d902c7f3a325f9eb7259221370356988156ee8b1
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Aug 12 18:45:17 2025 +0200

    [v3-0-test] Improve condition for pushing the cache for images (#54415) 
(#54418)
    
    While we refreshed the cache in main for schedule and workflow_dispatch
    so far, it seems that v3-0-test cache had not been refreshed because
    there `canary` builds work as `push` jobs.
    
    This PR adds `push` event to trigger the cache push as well - this
    should work fine because there is also the "canary" flag and we do
    not run "push" events for "main" branch.
    
    We could have removed the check for event types, but we really only
    want to run cache update on "true" canary runs not those that are
    triggered by pull_request and canary label.
    (cherry picked from commit 8b95f63075cf2c883983128cab0cf3387008a0b9)
    
    Co-authored-by: Jarek Potiuk <[email protected]>
---
 .github/workflows/finalize-tests.yml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/.github/workflows/finalize-tests.yml 
b/.github/workflows/finalize-tests.yml
index 8d8565add51..4fdbc777f22 100644
--- a/.github/workflows/finalize-tests.yml
+++ b/.github/workflows/finalize-tests.yml
@@ -190,6 +190,4 @@ jobs:
       include-success-outputs: ${{ inputs.include-success-outputs }}
       docker-cache: ${{ inputs.docker-cache }}
       disable-airflow-repo-cache: ${{ inputs.disable-airflow-repo-cache }}
-    if: >
-      inputs.canary-run == 'true' &&
-      (github.event_name == 'schedule' || github.event_name == 
'workflow_dispatch')
+    if: inputs.canary-run == 'true' && github.event_name != 'pull_request'

Reply via email to