diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index d7c2061..2d2a469 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,12 +1,16 @@ name: Repository Dispatch -on: - repository_dispatch: - types: [my-event] +on: pull_request + +permissions: + contents: write + jobs: myEvent: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 with: - ref: ${{ github.event.client_payload.ref }} - - run: echo ${{ github.event.client_payload.sha }} + repository: ekwaly/testing-actions + event-type: my-event + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'