Просмотр исходного кода

Merge pull request #729 from RooVetGit/mrubens-patch-1

Run discord GHA against pull_request_target
Matt Rubens 11 месяцев назад
Родитель
Сommit
730bf8de97
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      .github/workflows/discord-pr-notify.yml

+ 2 - 1
.github/workflows/discord-pr-notify.yml

@@ -2,12 +2,13 @@ name: Discord PR Notifier
 
 
 on:
 on:
   workflow_dispatch:
   workflow_dispatch:
-  pull_request:
+  pull_request_target:
     types: [opened]
     types: [opened]
 
 
 jobs:
 jobs:
   notify:
   notify:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
+    if: github.head_ref != 'changeset-release/main'
     steps:
     steps:
       - name: Send Discord Notification
       - name: Send Discord Notification
         uses: Ilshidur/action-discord@master
         uses: Ilshidur/action-discord@master