Skip to content

Commit

Permalink
fix(ci): don't deploy webpages from forks (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Apr 24, 2024
1 parent 31d13b8 commit 5bd1800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 5bd1800

Please sign in to comment.