Skip to content

Commit

Permalink
Add support for workflow_run trigger (#6)
Browse files Browse the repository at this point in the history
* Add support for workflow_run trigger

This change adds support for parsing `workflow_run` in the event payload
such that sha, head and ref will be computed from the original workflow
that triggered current workflow run.
  • Loading branch information
yigit authored Jun 17, 2021
1 parent 7820d46 commit 8ac134d
Show file tree
Hide file tree
Showing 5 changed files with 523 additions and 290 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ Your webhook endpoint will get a payload which looks something like:
}
```

## workflow_run targets
When this action is invoked in a `workflow_run` trigger, `repo`, `ref` and `sha` will be from the context of the workflow run that triggered current workflow run.

## Additional Information

The secret is delivered using an HTTP Header `X-GitHub-Secret`.

## Building

Setup: `npm install`
Updating dist: `npm run-script --silent build`
21 changes: 14 additions & 7 deletions built/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8ac134d

Please sign in to comment.