An open API service indexing awesome lists of open source software.

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

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"
}
```