From b931ea8bbdf1533e8cf13a6dc01d28954c46953a Mon Sep 17 00:00:00 2001 From: ekwaly <96921826+ekwaly@users.noreply.github.com> Date: Fri, 25 Oct 2024 00:59:01 +0200 Subject: [PATCH] Update documentation.yml --- .github/workflows/documentation.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index d7c2061..fe52fb1 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,12 +1,13 @@ name: Repository Dispatch -on: - repository_dispatch: - types: [my-event] +on: pull_request 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 }} + token: ${{ secrets.PAT }} + repository: username/my-repo + event-type: my-event + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'