https://github.com/dschep/filter-event-action
A Github Action to filter by event contents
https://github.com/dschep/filter-event-action
actions github-actions
Last synced: 4 months ago
JSON representation
A Github Action to filter by event contents
- Host: GitHub
- URL: https://github.com/dschep/filter-event-action
- Owner: dschep
- Created: 2019-02-19T23:40:37.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-11T18:06:08.000Z (over 6 years ago)
- Last Synced: 2025-02-02T04:24:12.143Z (about 1 year ago)
- Topics: actions, github-actions
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Github Action to filter on event fields
Use JS expressions to filter execution of Github Actions on event payloads. The JSON parsed event
is available as `event`. Pass the expression as the `args` to the action.
## Usage
An example workflow to block deleted branches:
```
workflow "Remove" {
on = "push"
resolves = ["on deleted branches only"]
}
action "on deleted branches only" {
uses = "dschep/filter-event-action@master"
args = "event.deleted"
}
```