From c116467446dde7b2754a2fd126f8db744feba0ff Mon Sep 17 00:00:00 2001 From: Edoardo Zoni Date: Mon, 18 Nov 2024 11:40:52 -0800 Subject: [PATCH] Debugging: split `push`, `workflow_run` events --- .github/workflows/macos-shared.yml | 9 +++++++++ .github/workflows/macos-wrun.yml | 2 ++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/macos-shared.yml b/.github/workflows/macos-shared.yml index 89b947665ed..b6c114b76f6 100644 --- a/.github/workflows/macos-shared.yml +++ b/.github/workflows/macos-shared.yml @@ -1,7 +1,16 @@ +on: + workflow_call: + inputs: + skip: + description: Skip the workflow + required: true + type: boolean + jobs: build_appleclang: name: AppleClang runs-on: macos-latest + if: ${{ inputs.skip == false }} #if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }} env: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: TRUE diff --git a/.github/workflows/macos-wrun.yml b/.github/workflows/macos-wrun.yml index ddcac542dfd..a89e2b144d7 100644 --- a/.github/workflows/macos-wrun.yml +++ b/.github/workflows/macos-wrun.yml @@ -13,3 +13,5 @@ concurrency: jobs: build_appleclang: uses: ./.github/workflows/macos-shared.yml + with: + skip: ${{ github.event.workflow_run.outputs.skip }}