Skip to content

Commit

Permalink
don't run on forks
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Apr 2, 2024
1 parent 7f2fc13 commit 5e343df
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 @@ -47,7 +47,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/rattler-build' && (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 @@ -84,7 +84,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/rattler-build' && (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 5e343df

Please sign in to comment.