From e300fc9004492b1db6f4f0d81253e4cf4a192185 Mon Sep 17 00:00:00 2001 From: Joseph Wright Date: Mon, 15 May 2023 22:54:14 -0700 Subject: [PATCH] Really try to fix trigger for deployment job The deploy job was running against the feature branch instead of master when the PR is merged. --- .github/workflows/hugo.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 773d3ee..6ec0a2e 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -11,6 +11,9 @@ on: - synchronize branches: - master + push: + branches: + - master # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -74,7 +77,8 @@ jobs: # Deployment job deploy: - if: ${{ github.event.pull_request.merged }} + if: | + github.event.push.ref == 'refs/heads/master' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}