Update examples
This commit is contained in:
parent
11baa5dc07
commit
04aa84a2af
1 changed files with 3 additions and 2 deletions
|
@ -128,7 +128,8 @@ This pattern will work well for updating any kind of static content from an exte
|
||||||
You can modify any of the examples in the previous section to work in this fashion.
|
You can modify any of the examples in the previous section to work in this fashion.
|
||||||
|
|
||||||
Set the workflow to execute `on: repository_dispatch`.
|
Set the workflow to execute `on: repository_dispatch`.
|
||||||
```
|
|
||||||
|
```yml
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [create-pull-request]
|
types: [create-pull-request]
|
||||||
|
@ -154,7 +155,7 @@ curl -XPOST -u "[username]:[token]" \
|
||||||
|
|
||||||
An `on: repository_dispatch` workflow can be triggered from another workflow with [repository-dispatch](https://github.com/peter-evans/repository-dispatch) action.
|
An `on: repository_dispatch` workflow can be triggered from another workflow with [repository-dispatch](https://github.com/peter-evans/repository-dispatch) action.
|
||||||
|
|
||||||
```
|
```yml
|
||||||
- name: Repository Dispatch
|
- name: Repository Dispatch
|
||||||
uses: peter-evans/repository-dispatch@v1.0.0
|
uses: peter-evans/repository-dispatch@v1.0.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue