workflows: Don't try and run llvm-bugs in forks
authorJessica Clarke <jrtc27@jrtc27.com>
Thu, 16 Mar 2023 16:47:07 +0000 (16:47 +0000)
committerJessica Clarke <jrtc27@jrtc27.com>
Thu, 16 Mar 2023 16:47:07 +0000 (16:47 +0000)
Most forks won't have an LLVM_BUGS_KEY secret, so Mailgun will error out
with a missing key, and if forks do happen to have such a secret then we
still don't want to be getting emails to LLVM's mailing lists for
downstream forks.

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D146235

.github/workflows/llvm-bugs.yml

index bfa0c9a..f592dd6 100644 (file)
@@ -12,6 +12,7 @@ on:
 jobs:
   auto-subscribe:
     runs-on: ubuntu-latest
+    if: github.repository == 'llvm/llvm-project'
     steps:
       - uses: actions/setup-node@v3
         with: