From ae609e0afa5aea9c28086fd60c267482ab6ddbf0 Mon Sep 17 00:00:00 2001 From: Alex Ganose Date: Sun, 10 Dec 2023 16:23:34 +0000 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 656524a2..4f28238a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ jobs: deploy-docs: # only run if commit is a push to master and the testing finished - if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && startsWith(github.event.workflow_run.head_branch, 'v0.') }} + if: ${{ github.repository_owner == 'materialsproject' && github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && startsWith(github.event.workflow_run.head_branch, 'v0.') }} runs-on: ubuntu-latest steps: @@ -44,7 +44,7 @@ jobs: deploy-pypi: # only run if commit is tagged as a version and the docs finished - if: ${{ startsWith(github.event.workflow_run.head_branch, 'v') }} + if: github.repository_owner == 'materialsproject' && github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && startsWith(github.event.workflow_run.head_branch, 'v0.') runs-on: ubuntu-latest needs: - deploy-docs