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 df68fb7cd84626abe5675443f5254649147b446b Author: Jarek Potiuk <jarek.pot...@polidea.com> AuthorDate: Sun Nov 1 22:05:45 2020 +0100 Fix canceling of CodeQL workflow (#12024) The previous update for 4.3 version of the action also broke CodeQL cancelling. This PR fixes it. (cherry picked from commit 5f9792cee26c729f319e57fd09538fa6703929b4) --- .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 752e577..6099727 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@f4a33154219b13dbb1e171695d6f03810f3a7b47 # v4_6 + uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # v4_7 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@f4a33154219b13dbb1e171695d6f03810f3a7b47 # v4_6 + uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # v4_7 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@f4a33154219b13dbb1e171695d6f03810f3a7b47 # v4_6 + uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # v4_7 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@f4a33154219b13dbb1e171695d6f03810f3a7b47 # v4_6 + uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # v4_7 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@f4a33154219b13dbb1e171695d6f03810f3a7b47 # v4_6 + uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # v4_7 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@f4a33154219b13dbb1e171695d6f03810f3a7b47 # v4_6 + uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # v4_7 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@f4a33154219b13dbb1e171695d6f03810f3a7b47 # v4_6 + uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # v4_7 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@f4a33154219b13dbb1e171695d6f03810f3a7b47 # v4_6 + uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # v4_7 with: token: ${{ secrets.GITHUB_TOKEN }} cancelMode: self