Skip to content

Commit 5bd1800

Browse files
authored
fix(ci): don't deploy webpages from forks (JeffersonLab#265)
1 parent 31d13b8 commit 5bd1800

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
#############################################################################
170170

171171
collect_webpages:
172-
if: ${{ github.head_ref == 'development' || github.ref_name == 'development' }}
172+
if: ${{ github.ref == 'refs/heads/development' }}
173173
needs: [ build, generate_documentation ]
174174
runs-on: ubuntu-latest
175175
steps:
@@ -190,7 +190,7 @@ jobs:
190190
path: pages/
191191

192192
deploy_web_pages:
193-
if: ${{ github.head_ref == 'development' || github.ref_name == 'development' }}
193+
if: ${{ github.ref == 'refs/heads/development' }}
194194
needs: collect_webpages
195195
permissions:
196196
pages: write

0 commit comments

Comments
 (0)