Skip to content

Commit

Permalink
Debugging consumer skips.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Apr 22, 2024
1 parent 7c05c24 commit 588eb10
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 15 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci-dispatch-group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) }}
23 changes: 21 additions & 2 deletions .github/workflows/ci-dispatch-two-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ permissions:

jobs:
producers:
name: ${{ matrix.name }}
permissions:
id-token: write
contents: read
Expand All @@ -32,7 +31,6 @@ jobs:
command: ${{ matrix.command }}

consumers:
name: ${{ matrix.name }}
needs: producers
permissions:
id-token: write
Expand All @@ -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 }}"

0 comments on commit 588eb10

Please sign in to comment.