Skip certain tests when running from fork

This commit is contained in:
daz 2024-04-10 17:05:09 -06:00
parent d37a479015
commit 30a2ee13f2
No known key found for this signature in database

View file

@ -75,6 +75,7 @@ jobs:
cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-' cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-'
dependency-graph: dependency-graph:
if: ${{ ! github.event.pull_request.head.repo.fork }}
needs: [determine-suite, build-distribution] needs: [determine-suite, build-distribution]
uses: ./.github/workflows/integ-test-dependency-graph.yml uses: ./.github/workflows/integ-test-dependency-graph.yml
permissions: permissions:
@ -84,6 +85,7 @@ jobs:
cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-' cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-'
dependency-submission: dependency-submission:
if: ${{ ! github.event.pull_request.head.repo.fork }}
needs: [determine-suite, build-distribution] needs: [determine-suite, build-distribution]
uses: ./.github/workflows/integ-test-dependency-submission.yml uses: ./.github/workflows/integ-test-dependency-submission.yml
permissions: permissions:
@ -93,6 +95,7 @@ jobs:
cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-' cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-'
dependency-submission-failures: dependency-submission-failures:
if: ${{ ! github.event.pull_request.head.repo.fork }}
needs: [determine-suite, build-distribution] needs: [determine-suite, build-distribution]
uses: ./.github/workflows/integ-test-dependency-submission-failures.yml uses: ./.github/workflows/integ-test-dependency-submission-failures.yml
permissions: permissions:
@ -116,7 +119,7 @@ jobs:
cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-' cache-key-prefix: '${{ needs.determine-suite.outputs.cache-key-prefix }}-'
develocity-injection: develocity-injection:
if: ${{ vars.HAS_GRADLE_ACTIONS_SECRETS == 'true' }} if: ${{ ! github.event.pull_request.head.repo.fork }}
needs: [determine-suite, build-distribution] needs: [determine-suite, build-distribution]
uses: ./.github/workflows/integ-test-inject-develocity.yml uses: ./.github/workflows/integ-test-inject-develocity.yml
with: with:
@ -131,7 +134,7 @@ jobs:
runner-os: '["ubuntu-latest"]' runner-os: '["ubuntu-latest"]'
restore-configuration-cache: restore-configuration-cache:
if: ${{ vars.HAS_GRADLE_ACTIONS_SECRETS == 'true' }} if: ${{ ! github.event.pull_request.head.repo.fork }}
needs: [determine-suite, build-distribution] needs: [determine-suite, build-distribution]
uses: ./.github/workflows/integ-test-restore-configuration-cache.yml uses: ./.github/workflows/integ-test-restore-configuration-cache.yml
with: with: