diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index e8096d695..d02e44b9c 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -46,7 +46,7 @@ jobs: folder: site # Assuming mkdocs build output is the default 'site' directory - name: Preview Documentation (on PR) - if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }} uses: rossjrw/pr-preview-action@v1 with: source-dir: site # Assuming mkdocs build output is the default 'site' directory diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 3fd6cde4b..8d553ce90 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -28,7 +28,7 @@ jobs: run: python -m build - if: ${{ github.event.action == 'published' }} name: Publish package - uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 + uses: pypa/gh-action-pypi-publish@fb13cb306901256ace3dab689990e13a5550ffaa with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }}