Skip to content

Commit

Permalink
Update discord-notification.yml
Browse files Browse the repository at this point in the history
Made changes to help with skipping Action issue
  • Loading branch information
bxpana authored Apr 8, 2024
1 parent 9fc59f1 commit a59d9f5
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/discord-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.event.discussion.labels.*.name, 'show-and-tell')
steps:
- name: Send Notification to Discord
run: |
curl -X POST -H "Content-Type: application/json" \
-d "{\"content\": \"A new labeled discussion has been created: ${GITHUB_EVENT_PATH}\"}" \
${{ secrets.DISCORD_WEBHOOK_URL }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
GITHUB_EVENT_DISCUSSION_URL: ${{ github.event.discussion.html_url }}
- name: Send Notification to Discord
run: |
curl -X POST -H "Content-Type: application/json" \
-d "{\"content\": \"A new labeled discussion has been created: ${{ github.event.discussion.html_url }}\"}" \
${{ secrets.DISCORD_WEBHOOK_URL }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}

0 comments on commit a59d9f5

Please sign in to comment.