From 19ddcb1ad12417783fc60e17d2e2bf1aa99dd601 Mon Sep 17 00:00:00 2001 From: Vipul Siddharth Date: Thu, 8 Aug 2024 17:13:52 +0200 Subject: [PATCH] add CI trigger on PR Signed-off-by: Vipul Siddharth --- .github/workflows/hugo.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 3a062aa2..2167ab99 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -5,6 +5,9 @@ on: push: branches: ["main"] + pull_request: + branches: ["main"] + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -68,6 +71,8 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build + + if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - name: Deploy to GitHub Pages id: deployment