Skip to content

Commit

Permalink
limit project actions to primary repo (NVIDIA#940)
Browse files Browse the repository at this point in the history
Work in contributor forks does not require these actions. Disable them
when not executing for the primary repository.
  • Loading branch information
jmartin-tech committed Oct 7, 2024
2 parents 1bf9b6c + 882df0e commit 16f7541
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ permissions:

jobs:
CLAAssistant:
if: github.repository_owner == 'leondz'
runs-on: ubuntu-latest
steps:
- name: "CA & DCO Assistant"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ on:

jobs:
handle-labels:
if: github.repository_owner == 'leondz'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/maintain_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ permissions:

jobs:
build:
if: github.repository_owner == 'leondz'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 16f7541

Please sign in to comment.