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

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

commit e18d6752814ea17cf596048cb8196224c46586a7
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Nov 1 19:25:29 2020 +0100

    Fixes problem with non-iterable data returned by GH API (#12021)
    
    The action to cancel workflow switched from deprecated
    method of retrieving jobs to a 'better' one but it caused
    some unexpected failures as some of the job data is not iterable and 
failures in 'failedJobs" matching
    
    Version 4.6 fixed the problem.
    
    (cherry picked from commit aa5213b3609388b7b77e362dd9ad0bb05a8b5bc6)
---
 .github/workflows/build-images-workflow-run.yml | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/build-images-workflow-run.yml 
b/.github/workflows/build-images-workflow-run.yml
index a3880e7..752e577 100644
--- a/.github/workflows/build-images-workflow-run.yml
+++ b/.github/workflows/build-images-workflow-run.yml
@@ -65,7 +65,7 @@ jobs:
           token: ${{ secrets.GITHUB_TOKEN }}
           sourceRunId: ${{ github.event.workflow_run.id }}
       - name: "Cancel duplicated 'CI Build' runs"
-        uses: 
potiuk/cancel-workflow-runs@f06d03cd576a179ea5169d048dbd8c8d73757b52  # v4_4
+        uses: 
potiuk/cancel-workflow-runs@f4a33154219b13dbb1e171695d6f03810f3a7b47  # v4_6
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
           cancelMode: allDuplicates
@@ -82,7 +82,7 @@ jobs:
         # trick ¯\_(ツ)_/¯. We name the build-info job appropriately
         # and then we try to find and cancel all the jobs with the same Event 
+ Repo + Branch as the
         # current Event/Repo/Branch combination.
-        uses: 
potiuk/cancel-workflow-runs@f06d03cd576a179ea5169d048dbd8c8d73757b52  # v4_4
+        uses: 
potiuk/cancel-workflow-runs@f4a33154219b13dbb1e171695d6f03810f3a7b47  # v4_6
         with:
           cancelMode: namedJobs
           token: ${{ secrets.GITHUB_TOKEN }}
@@ -98,7 +98,7 @@ jobs:
         # We also produce list of canceled "CI Build' runs as output, so that 
we
         # can cancel all the matching "Build Images" workflow runs in the two 
following steps.
         # Yeah. Adding to the complexity ¯\_(ツ)_/¯.
-        uses: 
potiuk/cancel-workflow-runs@f06d03cd576a179ea5169d048dbd8c8d73757b52  # v4_4
+        uses: 
potiuk/cancel-workflow-runs@f4a33154219b13dbb1e171695d6f03810f3a7b47  # v4_6
         id: cancel-failed
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
@@ -131,14 +131,14 @@ jobs:
         # it to cancel any jobs that have matching names containing Source Run 
Id:
         # followed by one of the run ids. Yes I know it's super complex 
¯\_(ツ)_/¯.
         if: env.BUILD_IMAGES == 'true' && 
steps.cancel-failed.outputs.cancelledRuns != '[]'
-        uses: 
potiuk/cancel-workflow-runs@f06d03cd576a179ea5169d048dbd8c8d73757b52  # v4_4
+        uses: 
potiuk/cancel-workflow-runs@f4a33154219b13dbb1e171695d6f03810f3a7b47  # v4_6
         with:
           cancelMode: namedJobs
           token: ${{ secrets.GITHUB_TOKEN }}
           notifyPRCancel: true
           jobNameRegexps: ${{ 
steps.extract-cancelled-failed-runs.outputs.matching-regexp }}
       - name: "Cancel duplicated 'CodeQL' runs"
-        uses: 
potiuk/cancel-workflow-runs@f06d03cd576a179ea5169d048dbd8c8d73757b52  # v4_4
+        uses: 
potiuk/cancel-workflow-runs@f4a33154219b13dbb1e171695d6f03810f3a7b47  # v4_6
         id: cancel
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
@@ -167,7 +167,7 @@ jobs:
         # trick ¯\_(ツ)_/¯. We name the build-info job appropriately and then 
we try to match
         # all the jobs with the same Event + Repo + Branch match and cancel 
all the duplicates for those
         # This might cancel own run, so this is the last step in the job
-        uses: 
potiuk/cancel-workflow-runs@f06d03cd576a179ea5169d048dbd8c8d73757b52  # v4_4
+        uses: 
potiuk/cancel-workflow-runs@f4a33154219b13dbb1e171695d6f03810f3a7b47  # v4_6
         with:
           cancelMode: allDuplicatedNamedJobs
           token: ${{ secrets.GITHUB_TOKEN }}
@@ -382,7 +382,7 @@ jobs:
     needs: [build-images]
     steps:
       - name: "Canceling the 'CI Build' source workflow in case of failure!"
-        uses: 
potiuk/cancel-workflow-runs@f06d03cd576a179ea5169d048dbd8c8d73757b52  # v4_4
+        uses: 
potiuk/cancel-workflow-runs@f4a33154219b13dbb1e171695d6f03810f3a7b47  # v4_6
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
           cancelMode: self
@@ -397,7 +397,7 @@ jobs:
     needs: [build-images]
     steps:
       - name: "Canceling the 'CI Build' source workflow in case of failure!"
-        uses: 
potiuk/cancel-workflow-runs@f06d03cd576a179ea5169d048dbd8c8d73757b52  # v4_4
+        uses: 
potiuk/cancel-workflow-runs@f4a33154219b13dbb1e171695d6f03810f3a7b47  # v4_6
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
           cancelMode: self

Reply via email to