From cadfcb9636beae728f8175530f9f37bfbb1e76b8 Mon Sep 17 00:00:00 2001 From: Maarten de Kruijf Date: Thu, 7 Mar 2024 16:52:27 +0100 Subject: [PATCH] CI doesn't deploy pages from feauter/docs pull request (#23) --- .github/workflows/hugo.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index ea6064cf..1a135f03 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -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 @@ -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 }}