Skip to content

GitHub Action for Filtering on Event Payloads

Actions
Run JavaScript expressions against the parsed contents of the file at GITHUB_EVENT_PATH
v1.0.0
Latest
Star (5)

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

GitHub Action for Filtering on Event Payloads is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Run JavaScript expressions against the parsed contents of the file at GITHUB_EVENT_PATH
v1.0.0
Latest

GitHub Action for Filtering on Event Payloads is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.