Skip to content

Commit

Permalink
🐛 fix slack notification action
Browse files Browse the repository at this point in the history
  • Loading branch information
joelazar committed Jun 10, 2022
1 parent 4f66c79 commit 2c366e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release_slack_notification.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Release slack notification
on:
release:
types: [published]
workflow_dispatch:
types:
- published
- released

jobs:
slackNotification:
name: Slack Notification
Expand All @@ -13,7 +15,7 @@ jobs:
- name: Get random joke
id: joke
run: |
echo "::set-output name=random::$(curl https://v2.jokeapi.dev/joke/Programming?format=txt)"
echo "::set-output name=random::$(curl -s https://v2.jokeapi.dev/joke/Programming\?format=txt | tr '\n' ' ')"
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
Expand Down

0 comments on commit 2c366e3

Please sign in to comment.