diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index b9daa0d69..03a8e5c3f 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -721,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: