From 8c3422f25418d53941cf09ac6cb31c88469c8fe1 Mon Sep 17 00:00:00 2001 From: Matt Green Date: Thu, 14 Nov 2024 14:01:41 -0800 Subject: [PATCH] only run deploy when merged --- .github/workflows/python-docs.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-docs.yml b/.github/workflows/python-docs.yml index 765ea53..5eba2aa 100644 --- a/.github/workflows/python-docs.yml +++ b/.github/workflows/python-docs.yml @@ -5,10 +5,10 @@ on: branches: ["main"] paths: - "py-denormalized/**" - # pull_request: - # branches: ["main"] - # paths: - # - "py-denormalized/**" + pull_request: + branches: ["main"] + paths: + - "py-denormalized/**" # security: restrict permissions for CI jobs. permissions: @@ -50,6 +50,8 @@ jobs: # Deploy the artifact to GitHub pages. # This is a separate job so that only actions/deploy-pages has the necessary permissions. deploy: + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + needs: build runs-on: ubuntu-latest permissions: