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 1/3] 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 }}"}' From ad316d722abd10e0ef9a056c193495614c8b3a9f Mon Sep 17 00:00:00 2001 From: ekwaly <96921826+ekwaly@users.noreply.github.com> Date: Fri, 25 Oct 2024 01:01:26 +0200 Subject: [PATCH 2/3] Update documentation.yml --- .github/workflows/documentation.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index fe52fb1..b9110bf 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -7,7 +7,6 @@ jobs: - name: Repository Dispatch uses: peter-evans/repository-dispatch@v3 with: - token: ${{ secrets.PAT }} - repository: username/my-repo + repository: ekwaly/testing-actions event-type: my-event client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' From f7eb84bf1eb552615b35f3e58526db6721201661 Mon Sep 17 00:00:00 2001 From: ekwaly <96921826+ekwaly@users.noreply.github.com> Date: Fri, 25 Oct 2024 01:09:50 +0200 Subject: [PATCH 3/3] Update documentation.yml --- .github/workflows/documentation.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index b9110bf..2d2a469 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,5 +1,9 @@ name: Repository Dispatch on: pull_request + +permissions: + contents: write + jobs: myEvent: runs-on: ubuntu-latest