Unverified Commit b5cb015c authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

ci: only upload adapter results for canary runs (#91881)

## Summary
- gate `upload-adapter-test-results` to only run when triggered from the
`canary` branch
- support both trigger paths:
  - `workflow_dispatch` on `canary`
  - `release` where `target_commitish` is `canary`
- keep existing deploy-script and owner safeguards
parent cc62489b
...@@ -249,7 +249,16 @@ jobs: ...@@ -249,7 +249,16 @@ jobs:
upload-adapter-test-results: upload-adapter-test-results:
name: Upload adapter test results name: Upload adapter test results
needs: [test-deploy-adapter] needs: [test-deploy-adapter]
if: ${{ always() && github.event.inputs.deployScriptPath == '' && github.repository_owner == 'vercel' }} if: >-
${{
always() &&
github.event.inputs.deployScriptPath == '' &&
github.repository_owner == 'vercel' &&
(
(github.event_name == 'workflow_dispatch' && github.ref_name == 'canary') ||
(github.event_name == 'release' && github.event.release.target_commitish == 'canary')
)
}}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment