From 21155c0073736084b1df0fa3fd251178c3282c09 Mon Sep 17 00:00:00 2001 From: Ollie Date: Mon, 28 Sep 2026 17:45:13 +0100 Subject: [PATCH] Skip Mattermost notifications for external pull requests --- .github/workflows/mattermost.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mattermost.yml b/.github/workflows/mattermost.yml index 992f0fd31..b191700ca 100644 --- a/.github/workflows/mattermost.yml +++ b/.github/workflows/mattermost.yml @@ -5,7 +5,8 @@ on: jobs: build: runs-on: ubuntu-latest - if: ${{ github.actor != 'dependabot[bot]' }} + # Don't run this job if the PR was created by Dependabot or from an external repository + if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }} steps: - uses: mattermost/action-mattermost-notify@v2.1.0 with: