From 3c06090090ca956c90b64bd4cc8ee6f8bada08fc Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 11 Nov 2026 20:05:26 +1100 Subject: [PATCH 1/3] Skipped the deploy job for fork PRs in Vortex's own CI. --- .github/workflows/build-test-deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index b9daa0d69..3272ca75c 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -701,7 +701,12 @@ jobs: runs-on: ubuntu-latest needs: [build, lint] #;< !PROVISION_TYPE_PROFILE - if: ${{ !cancelled() && (inputs.deploy_target || (success() && github.event_name != 'schedule' && !startsWith(github.head_ref || github.ref_name, 'deps/') && (github.event_name == 'push' || !startsWith(github.head_ref, 'project/')))) }} + #;< VORTEX_DEV + # Fork pull requests get no deployment secrets, and their branch does not + # exist in this repository. Consumer sites get the condition below. + if: ${{ !cancelled() && (inputs.deploy_target || (success() && github.event_name != 'schedule' && !startsWith(github.head_ref || github.ref_name, 'deps/') && (github.event_name == 'push' || !startsWith(github.head_ref, 'project/')))) && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} + #;> VORTEX_DEV + ##### if: ${{ !cancelled() && (inputs.deploy_target || (success() && github.event_name != 'schedule' && !startsWith(github.head_ref || github.ref_name, 'deps/') && (github.event_name == 'push' || !startsWith(github.head_ref, 'project/')))) }} #;> !PROVISION_TYPE_PROFILE permissions: From 1311a56ad83fdf1bf8f8de38518f3d71908a610c Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 11 Nov 2026 20:10:04 +1100 Subject: [PATCH 2/3] Folded the Vortex-only deploy condition onto 2 lines to stay within the yamllint line limit. --- .github/workflows/build-test-deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index 3272ca75c..b702423e7 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -704,7 +704,9 @@ jobs: #;< VORTEX_DEV # Fork pull requests get no deployment secrets, and their branch does not # exist in this repository. Consumer sites get the condition below. - if: ${{ !cancelled() && (inputs.deploy_target || (success() && github.event_name != 'schedule' && !startsWith(github.head_ref || github.ref_name, 'deps/') && (github.event_name == 'push' || !startsWith(github.head_ref, 'project/')))) && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} + if: >- + ${{ !cancelled() && (inputs.deploy_target || (success() && github.event_name != 'schedule' && !startsWith(github.head_ref || github.ref_name, 'deps/') && (github.event_name == 'push' || !startsWith(github.head_ref, 'project/')))) + && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} #;> VORTEX_DEV ##### if: ${{ !cancelled() && (inputs.deploy_target || (success() && github.event_name != 'schedule' && !startsWith(github.head_ref || github.ref_name, 'deps/') && (github.event_name == 'push' || !startsWith(github.head_ref, 'project/')))) }} #;> !PROVISION_TYPE_PROFILE From 4769bf75eb26be625de09d7c52d2de04147b79a2 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 11 Nov 2026 21:24:41 +1100 Subject: [PATCH 3/3] Replaced the duplicated deploy condition with a Vortex-only step that checks out the head commit and deploys nothing on fork PRs. --- .github/workflows/build-test-deploy.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index b702423e7..03a8e5c3f 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -701,14 +701,7 @@ jobs: runs-on: ubuntu-latest needs: [build, lint] #;< !PROVISION_TYPE_PROFILE - #;< VORTEX_DEV - # Fork pull requests get no deployment secrets, and their branch does not - # exist in this repository. Consumer sites get the condition below. - if: >- - ${{ !cancelled() && (inputs.deploy_target || (success() && github.event_name != 'schedule' && !startsWith(github.head_ref || github.ref_name, 'deps/') && (github.event_name == 'push' || !startsWith(github.head_ref, 'project/')))) - && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} - #;> VORTEX_DEV - ##### if: ${{ !cancelled() && (inputs.deploy_target || (success() && github.event_name != 'schedule' && !startsWith(github.head_ref || github.ref_name, 'deps/') && (github.event_name == 'push' || !startsWith(github.head_ref, 'project/')))) }} + if: ${{ !cancelled() && (inputs.deploy_target || (success() && github.event_name != 'schedule' && !startsWith(github.head_ref || github.ref_name, 'deps/') && (github.event_name == 'push' || !startsWith(github.head_ref, 'project/')))) }} #;> !PROVISION_TYPE_PROFILE permissions: @@ -728,6 +721,18 @@ jobs: - name: Preserve $HOME set in the container run: echo HOME=/root >> "$GITHUB_ENV" # https://github.com/actions/runner/issues/863 + #;< VORTEX_DEV + # Fork pull requests get no deployment secrets, and their branch exists + # only in the fork, so check out the head commit and deploy nothing. + - name: Disable deployment for fork pull requests + if: ${{ github.event.pull_request.head.repo.fork }} + run: | + echo "DEPLOY_BRANCH=${PR_HEAD_SHA}" >> "$GITHUB_ENV" + echo "VORTEX_DEPLOY_TYPES=none" >> "$GITHUB_ENV" + env: + PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} + #;> VORTEX_DEV + - name: Resolve deploy target if: ${{ inputs.deploy_target }} env: