From 09ce00a77f7712a87e2a44b62d3fd458a6da56a7 Mon Sep 17 00:00:00 2001 From: Jeremy McCormick Date: Mon, 28 Oct 2024 12:22:05 -0500 Subject: [PATCH] Skip the deployment of the site version for forks Repository secrets are not available on PRs from forks by default and we do not plan to enable this. --- .github/workflows/deploy_version.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/deploy_version.yaml b/.github/workflows/deploy_version.yaml index 9c364bb..529899f 100644 --- a/.github/workflows/deploy_version.yaml +++ b/.github/workflows/deploy_version.yaml @@ -10,6 +10,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Skip workflow for PRs from forks + shell: bash + run: | + if [ "${{ github.event.pull_request.head.repo.fork }}" = "true" ]; then + echo "This workflow is not supported for PRs from forks." + exit 0 + fi + - name: Extract branch name shell: bash run: echo "BRANCH_NAME=$(echo ${{ github.head_ref }} | sed 's/\//-/g')" >> $GITHUB_ENV