Add condition to run tests only on maintainer's branches

This commit is contained in:
Eddy Filip
2025-02-20 13:27:55 +01:00
parent a525a84c53
commit fec5c39dcc

View File

@@ -15,6 +15,12 @@ jobs:
- run: npm ci
- run: npm test
test-with-output-secrets:
if: |
github.ref == 'refs/heads/main' ||
(
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
)
uses: ./.github/workflows/acceptance-test.yml
secrets: inherit
with:
@@ -23,6 +29,12 @@ jobs:
multiline-secret: op://acceptance-tests/multiline-secret/notesPlain
export-env: false
test-with-export-env:
if: |
github.ref == 'refs/heads/main' ||
(
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
)
uses: ./.github/workflows/acceptance-test.yml
secrets: inherit
with:
@@ -31,6 +43,12 @@ jobs:
multiline-secret: op://acceptance-tests/multiline-secret/notesPlain
export-env: true
test-references-with-ids:
if: |
github.ref == 'refs/heads/main' ||
(
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
)
uses: ./.github/workflows/acceptance-test.yml
secrets: inherit
with: