diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d352a760c..299ba8273 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,6 +30,7 @@ jobs: run: mkdocs build deploy: + if: github.event.workflow_run.event == 'push' && contains(fromJson('["master", "main"]'), github.event.workflow_run.head_branch) needs: build name: Deploy docs runs-on: ubuntu-latest diff --git a/.github/workflows/update_contributors.yml b/.github/workflows/update_contributors.yml index 36e4aa530..98537b3db 100644 --- a/.github/workflows/update_contributors.yml +++ b/.github/workflows/update_contributors.yml @@ -1,13 +1,9 @@ name: Update contributors -on: - push: - branches: - - master +on: [push, pull_request] jobs: update_contributors: - if: github.event_name == 'push' && contains(fromJson('["refs/heads/master", "refs/heads/main"]'), github.ref) runs-on: ubuntu-latest steps: - name: Checkout code