Unverified Commit 924b5ab4 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Only run build_and_deploy once for PRs from upstream (#80329)

parent 0bb13fa6
......@@ -28,6 +28,9 @@ env:
jobs:
deploy-target:
runs-on: ubuntu-latest
# Don't trigger this job on `pull_request` events from upstream branches.
# Those would already run this job on the `push` event
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork }}
outputs:
value: ${{ steps.deploy-target.outputs.value }}
steps:
......@@ -693,7 +696,7 @@ jobs:
buildPassed:
needs: ['deploy-target', 'build', 'build-wasm', 'build-native']
if: always()
if: ${{ always() && needs.deploy-target.outputs.value != '' }}
name: thank you, build
runs-on: ubuntu-latest
steps:
......
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