From 588eb102844baeaf14f9c27b34cf2a7762933148 Mon Sep 17 00:00:00 2001 From: Allison Piper Date: Mon, 22 Apr 2024 03:30:06 +0000 Subject: [PATCH] Debugging consumer skips. --- .github/workflows/ci-dispatch-group.yml | 26 ++++++++++----------- .github/workflows/ci-dispatch-two-stage.yml | 23 ++++++++++++++++-- 2 files changed, 34 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci-dispatch-group.yml b/.github/workflows/ci-dispatch-group.yml index fd3f6123912..40b1d78a690 100644 --- a/.github/workflows/ci-dispatch-group.yml +++ b/.github/workflows/ci-dispatch-group.yml @@ -14,19 +14,6 @@ permissions: contents: read jobs: - two-stage-jobs: - permissions: - id-token: write - contents: read - strategy: - fail-fast: false - matrix: - include: ${{fromJSON(inputs.jobs)['two_stage']}} - uses: ./.github/workflows/ci-dispatch-two-stage.yml - with: - producers: ${{ toJSON(matrix.producers) }} - consumers: ${{ toJSON(matrix.consumers) }} - standlone-jobs: permissions: id-token: write @@ -42,3 +29,16 @@ jobs: runner: ${{ matrix.runner }} image: ${{ matrix.image }} command: ${{ matrix.command }} + + two-stage-jobs: + permissions: + id-token: write + contents: read + strategy: + fail-fast: false + matrix: + include: ${{fromJSON(inputs.jobs)['two_stage']}} + uses: ./.github/workflows/ci-dispatch-two-stage.yml + with: + producers: ${{ toJSON(matrix.producers) }} + consumers: ${{ toJSON(matrix.consumers) }} diff --git a/.github/workflows/ci-dispatch-two-stage.yml b/.github/workflows/ci-dispatch-two-stage.yml index e5a0a6be3ab..358357886bb 100644 --- a/.github/workflows/ci-dispatch-two-stage.yml +++ b/.github/workflows/ci-dispatch-two-stage.yml @@ -15,7 +15,6 @@ permissions: jobs: producers: - name: ${{ matrix.name }} permissions: id-token: write contents: read @@ -32,7 +31,6 @@ jobs: command: ${{ matrix.command }} consumers: - name: ${{ matrix.name }} needs: producers permissions: id-token: write @@ -48,3 +46,24 @@ jobs: runner: ${{ matrix.runner }} image: ${{ matrix.image }} command: ${{ matrix.command }} + + consumers-debug: + needs: producers + if: always() + permissions: + id-token: write + contents: read + strategy: + fail-fast: false + matrix: + include: ${{fromJSON(inputs.consumers)}} + runs-on: ubuntu-latest + steps: + - name: Debug + run: | + echo "Name: ${{ matrix.name }}" + echo "Runner: ${{ matrix.runner }}" + echo "Image: ${{ matrix.image }}" + echo "Command: ${{ matrix.command }}" + echo "Dispatch: ${{ matrix.dispatch }}" + echo "Producers result: ${{ needs.producers.result }}"