From a4a15bb274fb68cfd093c5ee45a95484cdf78a4c Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 29 Aug 2023 04:01:36 +0800 Subject: [PATCH] Disable publish jobs in forks (#446) No need to do these jobs in forked repos, they will fail. --- .github/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fc92826c5..7dd4b53a5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,7 @@ on: jobs: test: + if: github.repository == 'ajalt/clikt' strategy: matrix: os: [ macos-latest, windows-latest, ubuntu-latest ] @@ -49,6 +50,7 @@ jobs: deploy: needs: test runs-on: macos-latest + if: github.repository == 'ajalt/clikt' steps: - uses: actions/checkout@v3 - name: Fetch git tags