diff --git a/.github/workflows/repository-dispatch.yml b/.github/workflows/repository-dispatch.yml new file mode 100644 index 000000000..11803763b --- /dev/null +++ b/.github/workflows/repository-dispatch.yml @@ -0,0 +1,24 @@ +name: Repository Dispatch + +on: + push: + branches: + - master + +concurrency: ${{ github.workflow }} + +jobs: + event_dispatch: + strategy: + matrix: + target: [logto-io/cloud] + runs-on: ubuntu-latest + + steps: + - name: Dispatch Event + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.BOT_PAT }} + repository: ${{ matrix.target }} + event-type: ${{ github.event_name }} + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'