From 51444509a8b730044cc4be37fde015b4f764f060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Tue, 14 Nov 2023 13:50:57 +0100 Subject: [PATCH] trying a dispatcher --- .github/workflows/AEF-DDF-all.yaml | 14 ++++++-------- .github/workflows/AEF-DDF-dispatch.yaml | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/AEF-DDF-dispatch.yaml diff --git a/.github/workflows/AEF-DDF-all.yaml b/.github/workflows/AEF-DDF-all.yaml index dc8fb0f1..b2112a30 100644 --- a/.github/workflows/AEF-DDF-all.yaml +++ b/.github/workflows/AEF-DDF-all.yaml @@ -13,13 +13,11 @@ jobs: strategy: matrix: workflow: [lint, document] - runs-on: ubuntu-latest - steps: - - run: echo ./.github/workflows/${{ matrix.workflow }}.yaml - #uses: ./.github/workflows/${{ matrix.workflow }}.yaml - #with: - # event_name: ${{ inputs.event_name }} - # run_id: ${{ inputs.run_id }} - #secrets: inherit + uses: ./.github/workflows/dispatch.yaml + with: + workflow: ./.github/workflows/${{ matrix.workflow }}.yaml + event_name: ${{ inputs.event_name }} + run_id: ${{ inputs.run_id }} + secrets: inherit diff --git a/.github/workflows/AEF-DDF-dispatch.yaml b/.github/workflows/AEF-DDF-dispatch.yaml new file mode 100644 index 00000000..2088f65a --- /dev/null +++ b/.github/workflows/AEF-DDF-dispatch.yaml @@ -0,0 +1,22 @@ +on: + workflow_call: + inputs: + workflow: + required: true + type: string + event_name: + required: true + type: string + run_id: + required: true + type: string + +jobs: + dispatch: + uses: ${{ inputs.workflow }} + with: + event_name: ${{ inputs.event_name }} + run_id: ${{ inputs.run_id }} + secrets: inherit + +