name: notify-discord

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]
  issues:
    types: [opened]

jobs:
  notify:
    runs-on: ubuntu-latest

    steps:
      - name: Actions for Discord
        env:
          DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
        uses: Ilshidur/action-discord@0.3.0

name: notify-discord

on:
  push:
    branches: [master]
  pull_request_target:
    branches: [master]
  issues:
    types: [opened]

jobs:
  notify:
    runs-on: ubuntu-latest

    steps:
      - name: Actions for Discord
        env:
          DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
        uses: Ilshidur/action-discord@0.3.0

Fix broken Discord action for PRs
Fix broken Discord action for PRs

Switch to use `pull_request_target` event instead of
`pull_request`. This runs in the base and allows
accessing `secrets.DISCORD_WEBHOOK`.