docs: update readme

This commit is contained in:
Peter Evans
2025-10-01 16:20:14 +01:00
committed by GitHub
parent a628c95fd1
commit 5fc4efd1a4

View File

@@ -18,7 +18,7 @@ jobs:
contents: write contents: write
steps: steps:
- name: Repository Dispatch - name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3 uses: peter-evans/repository-dispatch@v4
with: with:
event-type: my-event event-type: my-event
``` ```
@@ -39,7 +39,7 @@ Use a `repo` scoped [Personal Access Token (PAT)](https://docs.github.com/en/aut
```yml ```yml
- name: Repository Dispatch - name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3 uses: peter-evans/repository-dispatch@v4
with: with:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
repository: username/my-repo repository: username/my-repo
@@ -73,7 +73,7 @@ Here is an example setting all of the input parameters.
```yml ```yml
- name: Repository Dispatch - name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3 uses: peter-evans/repository-dispatch@v4
with: with:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
repository: username/my-repo repository: username/my-repo
@@ -93,7 +93,7 @@ jobs:
myEvent: myEvent:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
ref: ${{ github.event.client_payload.ref }} ref: ${{ github.event.client_payload.ref }}
- run: echo ${{ github.event.client_payload.sha }} - run: echo ${{ github.event.client_payload.sha }}
@@ -116,7 +116,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Repository Dispatch - name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3 uses: peter-evans/repository-dispatch@v4
with: with:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
repository: ${{ matrix.repo }} repository: ${{ matrix.repo }}
@@ -153,7 +153,7 @@ A multiline `client-payload` can be set directly in YAML, as in the following ex
```yml ```yml
- name: Repository Dispatch - name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3 uses: peter-evans/repository-dispatch@v4
with: with:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
repository: username/my-repo repository: username/my-repo