ci: skip remote contract on PRs
This commit is contained in:
parent
518cc47de0
commit
e3da13a055
5
.github/workflows/build-and-release.yml
vendored
5
.github/workflows/build-and-release.yml
vendored
@ -240,14 +240,15 @@ jobs:
|
|||||||
# Test-stage quality gate: runs between build and release.
|
# Test-stage quality gate: runs between build and release.
|
||||||
# continue-on-error keeps it skippable so a failure never blocks release.
|
# continue-on-error keeps it skippable so a failure never blocks release.
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: ${{ github.event_name != 'push' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
|
# This check needs Vault-backed credentials, so skip it for PR events
|
||||||
|
# and keep it for push / dispatch release flows only.
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Load Vault secrets
|
- name: Load Vault secrets
|
||||||
id: vault
|
id: vault
|
||||||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
|
|
||||||
uses: hashicorp/vault-action@v4
|
uses: hashicorp/vault-action@v4
|
||||||
with:
|
with:
|
||||||
url: ${{ env.VAULT_ADDR }}
|
url: ${{ env.VAULT_ADDR }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user