diff --git a/.github/actions/deploy-docs/action.yml b/.github/actions/deploy-docs/action.yml index bdebe50fd0..595ad77fc9 100644 --- a/.github/actions/deploy-docs/action.yml +++ b/.github/actions/deploy-docs/action.yml @@ -17,6 +17,7 @@ runs: shell: bash working-directory: doc/wiki - uses: JamesIves/github-pages-deploy-action@22a6ee251d6f13c6ab1ecb200d974f1a6feb1b8d # v4.4.2 + if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' with: branch: gh-pages folder: doc/wiki/wiki diff --git a/.github/workflows/linux-build-test-deploy.yml b/.github/workflows/linux-build-test-deploy.yml index 06b029cf79..ad15293efc 100644 --- a/.github/workflows/linux-build-test-deploy.yml +++ b/.github/workflows/linux-build-test-deploy.yml @@ -233,7 +233,6 @@ jobs: deploy-docs: runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' steps: - name: Checkout repository uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3