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: