Add action

This commit is contained in:
Peter Evans
2019-11-08 10:37:57 +09:00
parent 4d84287ffa
commit 0ae1c4b014
9 changed files with 6870 additions and 2 deletions

View 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 }}"}'

View 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 }}