Skip to content

Commit

Permalink
fix(slack notifications): don't attempt to post a slack message if do…
Browse files Browse the repository at this point in the history
…n't have one (#527) (#4414)

This fixes a 'SlackError: Missing input!' error when skipping a
notification, e.g. for a dependabot PR:
https://github.com/elastic/elastic-otel-node/actions/runs/12743214047/job/35512726091?pr=526

Refs: elastic/elastic-otel-node#527
  • Loading branch information
trentm committed Jan 20, 2025
1 parent 28c0825 commit 3bed8fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
f.write("payload={}".format(json.dumps(payload)))
- name: Post Slack message
if: ${{ steps.prepare.outputs.payload }}
uses: slackapi/slack-github-action@v2.0.0
with:
method: chat.postMessage
Expand Down

0 comments on commit 3bed8fe

Please sign in to comment.