Don't run publish tests from fork (#8168)

Only the astral-sh/uv repository has the secrets.

---------

Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
This commit is contained in:
konsti
2024-10-14 22:46:41 +02:00
committed by GitHub
parent c5d9f55bc4
commit 0c5d05d9e1
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1012,13 +1012,14 @@ jobs:
code:
- "crates/uv-publish/**/*"
- "scripts/publish/**/*"
- ".github/workflows/ci.yml"
integration-test-publish:
timeout-minutes: 10
needs: integration-test-publish-changed
name: "integration test | uv publish"
runs-on: ubuntu-latest
if: ${{ github.repository == 'astral-sh/uv' && (needs.integration-test-publish-changed.outputs.code == 'true' || github.ref == 'refs/heads/main') }}
if: ${{ github.repository == 'astral-sh/uv' && github.event.pull_request.head.repo.fork != true && (needs.integration-test-publish-changed.outputs.code == 'true' || github.ref == 'refs/heads/main') }}
environment: uv-test-publish
env:
# No dbus in GitHub Actions