Skip to content

Commit

Permalink
Merge pull request #9 from joelazar/bugfix/fix-slack-notification
Browse files Browse the repository at this point in the history
🐛 fix slack notification action
  • Loading branch information
joelazar authored Jun 10, 2022
2 parents 4f66c79 + 2c366e3 commit 85b7356
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 85b7356

Please sign in to comment.