mirror of
https://github.com/peter-evans/repository-dispatch.git
synced 2026-06-27 14:44:21 +00:00
Add action
This commit is contained in:
13
.github/workflows/create-repository-dispatch.yml
vendored
Normal file
13
.github/workflows/create-repository-dispatch.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
name: Create Repository Dispatch
|
||||
on: push
|
||||
jobs:
|
||||
createRepositoryDispatch:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Repository Dispatch
|
||||
uses: ./
|
||||
with:
|
||||
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||
event-type: tests
|
||||
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
||||
12
.github/workflows/on-repository-dispatch.yml
vendored
Normal file
12
.github/workflows/on-repository-dispatch.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
name: Repository Dispatch
|
||||
on:
|
||||
repository_dispatch:
|
||||
types: [tests]
|
||||
jobs:
|
||||
autopep8:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
ref: ${{ github.event.client_payload.ref }}
|
||||
- run: echo ${{ github.event.client_payload.sha }}
|
||||
Reference in New Issue
Block a user