Skip to content

Commit

Permalink
actions: skip notify discord on PRs because secrets aren't available
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Feb 23, 2024
1 parent 8da53ef commit cbefdea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
npm run build-docs
- name: Notify Discord (success)
if: ${{ github.repository == 'openfl/openfl-js' && github.event_name != 'pull_request' }}
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
Expand All @@ -52,7 +53,7 @@ jobs:

- name: Notify Discord (failure)
uses: appleboy/discord-action@master
if: failure()
if: ${{ failure() && github.repository == 'openfl/openfl-js' && github.event_name != 'pull_request' }}
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
Expand Down

0 comments on commit cbefdea

Please sign in to comment.