ci: skip remote contract on PRs

This commit is contained in:
Haitao Pan 2026-06-29 15:50:22 +08:00
parent 518cc47de0
commit e3da13a055

View File

@ -240,14 +240,15 @@ jobs:
# Test-stage quality gate: runs between build and release.
# continue-on-error keeps it skippable so a failure never blocks release.
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:
- name: Checkout source
uses: actions/checkout@v7
- name: Load Vault secrets
id: vault
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
uses: hashicorp/vault-action@v4
with:
url: ${{ env.VAULT_ADDR }}