Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INFRA] Prevent Actions workflows from running on people's forks #3900

Merged
merged 4 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
# Make citation metadata from CITATION.cff is valid.
# as it is used in the documentation build.
validate_cff:
if: github.repository == 'nilearn/nilearn'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/detect_test_pollution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:

latest:

if: github.repository == 'nilearn/nilearn'

runs-on: ubuntu-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/isort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ concurrency:

jobs:
isort:
if: github.repository == 'nilearn/nilearn'
Remi-Gau marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
min_requirements:
if: github.repository == 'nilearn/nilearn'
runs-on: ubuntu-20.04
name: Python 3.7, minimal requirements without Matplotlib
defaults:
Expand Down Expand Up @@ -41,6 +42,7 @@ jobs:
name: Upload coverage to CodeCov

min_requirements_matplotlib:
if: github.repository == 'nilearn/nilearn'
runs-on: ubuntu-20.04
name: Python 3.7, minimal requirements with Matplotlib
defaults:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testing_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ concurrency:

jobs:
test_install:
if: github.repository == 'nilearn/nilearn'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update_authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency:

jobs:
update_authors:
if: github.repository == 'nilearn/nilearn'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down