Skip to content

Commit

Permalink
chore: don't run docs releases on forks (prefix-dev#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts committed Mar 19, 2024
1 parent 2d0e7df commit 8177c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
docs-release:
# Don't run on forks
if: startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.tag, 'v')
if: github.repository == 'prefix-dev/pixi' && (startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.tag, 'v'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
docs-dev:
# Don't run on forks
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' && !startsWith(github.event.inputs.tag, 'v')
if: github.repository == 'prefix-dev/pixi' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' && !startsWith(github.event.inputs.tag, 'v'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down

0 comments on commit 8177c45

Please sign in to comment.