Skip to content

Instantly share code, notes, and snippets.

@kyanny
Created July 29, 2019 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyanny/cd45a6d28b450879d079108c31c0cc40 to your computer and use it in GitHub Desktop.
Save kyanny/cd45a6d28b450879d079108c31c0cc40 to your computer and use it in GitHub Desktop.
workflow "Post labeled issue to Slack" {
resolves = ["GitHub Action for Slack"]
on = "issues"
}
action "Filters for GitHub Actions-1" {
uses = "actions/bin/filter@0dbb077f64d0ec1068a644d25c71b1db66148a24"
args = "action labeled"
}
action "Filters for GitHub Actions-2" {
uses = "actions/bin/filter@0dbb077f64d0ec1068a644d25c71b1db66148a24"
args = "label wontfix"
needs = ["Filters for GitHub Actions-1"]
}
action "GitHub Action for Slack" {
uses = "Ilshidur/action-slack@a6d9e9ed519555c498265694cf2d7367d9dc6926"
args = "labeled issue has updated {{ _.map(EVENT_PAYLOAD.issue.labels, function(label) { return label.name }) }} {{ EVENT_PAYLOAD.issue.html_url }}"
needs = ["Filters for GitHub Actions-2"]
secrets = ["SLACK_WEBHOOK"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment