diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml new file mode 100644 index 0000000..0d3b1ce --- /dev/null +++ b/.github/workflows/dispatch.yml @@ -0,0 +1,20 @@ +on: workflow_call + +name: dispatch + +jobs: + dispatch: + if: ${{ github.ref == 'refs/heads/master' }} + runs-on: ubuntu-latest + name: dispatch simmer.${{ matrix.repo }} + + strategy: + matrix: + repo: ['plot', 'bricks'] + + steps: + - uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.SIMMER_TOKEN }} + repository: r-simmer/simmer.${{ matrix.repo }} + event-type: simmer