diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a4a34a79..4876e6f0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -89,6 +89,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} test: + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository uses: ./.github/workflows/test.yml needs: - prerequisites diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index e1fe64ce..cd3a158b 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -71,6 +71,8 @@ jobs: isPrerelease: true test: + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository uses: ./.github/workflows/test.yml needs: - prerequisites diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13df39b3..b37faf05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,6 +77,8 @@ jobs: isPrerelease: false test: + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository uses: ./.github/workflows/test.yml needs: - prerequisites diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 3815ab05..8af5bd93 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -92,6 +92,8 @@ jobs: uses: ./.github/workflows/lint.yml secrets: inherit test: + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository uses: ./.github/workflows/test.yml needs: - prerequisites diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d6ed935c..46eaacdb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,8 +33,6 @@ env: jobs: test: - if: github.event_name == 'repository_dispatch' || - github.event.pull_request.head.repo.full_name == github.repository name: test permissions: contents: read