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

Prevent running certain workflows on forks #3773

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/generate_pot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
generate-pot:
name: Generate POT file
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/issue_automations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
run:
name: Perform issue automations
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/label_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
sync_labels:
name: Sync labels
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr_automations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
run:
name: Perform PR automations
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr_automations_init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
run:
name: Save event info
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
steps:
- name: Save event info
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr_ping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
name: Send Slack message
if: |
github.actor != 'dependabot[bot]' &&
!startsWith(github.event.pull_request.title, '🔄')
!startsWith(github.event.pull_request.title, '🔄') &&
github.repository_owner == 'WordPress'
runs-on: ubuntu-latest
env:
pr_url: ${{ github.event.pull_request.html_url }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/project_thread_update_reminders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
send-reminders:
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v6
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
release-app:
name: Release app
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
permissions:
# Needed to create the GitHub release on the repo
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
renovate:
runs-on: ubuntu-latest
if: github.repository == 'WordPress/openverse'
if: github.repository_owner == 'WordPress'
steps:
- uses: actions/checkout@v4

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/subscribe_to_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
subscribe:
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
steps:
- uses: bytecodealliance/subscribe-to-label-action@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sync_meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
sync_meta:
name: Sync meta files
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/weekly_updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
make_post:
name: Create post on Make site
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
Loading