Skip to content

Commit d7951c2

Browse files
authored
test: Skip tests with secrets on fork PRs (#216)
1 parent 4522f64 commit d7951c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ jobs:
467467
matrix:
468468
os: [ubuntu-latest, macos-latest, windows-latest]
469469
runs-on: ${{ matrix.os }}
470+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
470471
steps:
471472
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
472473
- name: Move pixi.toml
@@ -485,6 +486,7 @@ jobs:
485486
matrix:
486487
os: [ubuntu-latest, macos-latest, windows-latest]
487488
runs-on: ${{ matrix.os }}
489+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
488490
steps:
489491
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
490492
- name: Move pixi.toml

0 commit comments

Comments
 (0)