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

De-dupe build_and_deploy run for PRs (#78792)

This aims to avoid running the `build_and_deploy` workflow twice when
pushed to the main Next.js repo and also opened as a PR.

Follow-up to https://github.com/vercel/next.js/pull/78737

Validated against:
https://github.com/vercel/next.js/actions/runs/14804173232/job/41569421246?pr=78795
parent e33b7dd2
......@@ -18,6 +18,7 @@ env:
jobs:
deploy-target:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
outputs:
value: ${{ steps.deploy-target.outputs.value }}
......
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