Skip to content

Commit

Permalink
CI doesn't deploy pages from feauter/docs pull request (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Mar 7, 2024
1 parent 0255ab2 commit cadfcb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defaults:
jobs:
# Build job
build-documentation:
if: startsWith(github.head_ref, 'feature/docs/**') || github.ref == 'refs/heads/master' && github.github.event_name == 'push'
if: ${{ contains(github.head_ref, 'feature/docs/') || (github.ref == 'refs/heads/master' && github.github.event_name == 'push') }}
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.123.7
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:

# Deployment job
deploy-to-pages:
if: startsWith(github.head_ref, 'feature/docs/**') || github.ref == 'refs/heads/master' && github.github.event_name == 'push'
if: ${{ contains(github.head_ref, 'feature/docs/') || (github.ref == 'refs/heads/master' && github.github.event_name == 'push')}}
environment:
name: development-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit cadfcb9

Please sign in to comment.