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 }}