From a59d9f54ddd54dbf257f13de82384ee591334002 Mon Sep 17 00:00:00 2001 From: bxpana <42230936+bxpana@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:39:14 -0700 Subject: [PATCH] Update discord-notification.yml Made changes to help with skipping Action issue --- .github/workflows/discord-notification.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/discord-notification.yml b/.github/workflows/discord-notification.yml index a548448..e29ebb3 100644 --- a/.github/workflows/discord-notification.yml +++ b/.github/workflows/discord-notification.yml @@ -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 }}