Skip to content

Commit

Permalink
Disable publish jobs in forks (#446)
Browse files Browse the repository at this point in the history
No need to do these jobs in forked repos, they will fail.
  • Loading branch information
Goooler authored Aug 28, 2023
1 parent 99ff443 commit a4a15bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
test:
if: github.repository == 'ajalt/clikt'
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a4a15bb

Please sign in to comment.