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: ...@@ -28,6 +28,9 @@ env:
jobs: jobs:
deploy-target: deploy-target:
runs-on: ubuntu-latest 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: outputs:
value: ${{ steps.deploy-target.outputs.value }} value: ${{ steps.deploy-target.outputs.value }}
steps: steps:
...@@ -693,7 +696,7 @@ jobs: ...@@ -693,7 +696,7 @@ jobs:
buildPassed: buildPassed:
needs: ['deploy-target', 'build', 'build-wasm', 'build-native'] needs: ['deploy-target', 'build', 'build-wasm', 'build-native']
if: always() if: ${{ always() && needs.deploy-target.outputs.value != '' }}
name: thank you, build name: thank you, build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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