From 86a2de8bc54d5abfc77e4fe2ac877e1ce38ea4c2 Mon Sep 17 00:00:00 2001 From: Christopher Dilks Date: Tue, 23 Apr 2024 21:57:25 -0400 Subject: [PATCH] fix(ci): don't deploy webpages from forks Deployment attempts have been happening (and failing) from PRs from forks, when the head branch is `development`, _e.g., #264. This PR prevents this. --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3040783661..7c4df2efa7 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -169,7 +169,7 @@ jobs: ############################################################################# collect_webpages: - if: ${{ github.head_ref == 'development' || github.ref_name == 'development' }} + if: ${{ github.ref == 'refs/heads/development' }} needs: [ build, generate_documentation ] runs-on: ubuntu-latest steps: @@ -190,7 +190,7 @@ jobs: path: pages/ deploy_web_pages: - if: ${{ github.head_ref == 'development' || github.ref_name == 'development' }} + if: ${{ github.ref == 'refs/heads/development' }} needs: collect_webpages permissions: pages: write