Skip to content

Commit

Permalink
fix: skip slack notify for skipped workflows
Browse files Browse the repository at this point in the history
Skip slack notification for skipped workflows.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Sep 18, 2023
1 parent 0bf4591 commit ae47820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/slack-notify.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-09-18T11:05:10Z by kres 90499df-dirty.
# Generated on 2023-09-18T19:16:56Z by kres 0bf4591-dirty.

name: slack-notify
"on":
Expand All @@ -13,6 +13,7 @@ jobs:
slack-notify:
runs-on:
- self-hosted
if: ${{ github.event.workflow_run.conclusion != 'skipped' }}
steps:
- name: Retrieve Workflow Run Info
id: retrieve-workflow-run-info
Expand Down
1 change: 1 addition & 0 deletions internal/output/ghworkflow/gh_workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func NewOutput() *Output {
Jobs: map[string]*Job{
"slack-notify": {
RunsOn: []string{hostedRunner},
If: "${{ github.event.workflow_run.conclusion != 'skipped' }}",
Steps: []*Step{
{
Name: "Retrieve Workflow Run Info",
Expand Down

0 comments on commit ae47820

Please sign in to comment.