Skip to content

Commit

Permalink
trying a dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Nov 14, 2023
1 parent 81e78af commit 5144450
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/AEF-DDF-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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


22 changes: 22 additions & 0 deletions .github/workflows/AEF-DDF-dispatch.yaml
Original file line number Diff line number Diff line change
@@ -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


0 comments on commit 5144450

Please sign in to comment.