Skip to content

Commit 47c5939

Browse files
Don't run some CI on repo forks (valkey-io#3719)
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
1 parent d45cccc commit 47c5939

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.github/workflows/mkdocs-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy mkdocs website to GitHub Pages
33
on:
44
push:
55
branches:
6-
- "main"
6+
- main
77
paths:
88
- python/**
99
- node/**
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
build-and-deploy-docs:
1616
runs-on: ubuntu-latest
17+
if: github.repository_owner == 'valkey-io'
1718

1819
steps:
1920
- name: Checkout your branch

.github/workflows/ort-sweeper.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
trigger-ort-check:
99
runs-on: ubuntu-latest
10+
if: github.repository_owner == 'valkey-io'
1011

1112
steps:
1213
- name: Checkout repository

.github/workflows/ort.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ jobs:
1818
# 1. For workflow_dispatch, always allow
1919
# 2. For pull_request, run if branch is not autogenerated ort-diff-for- branches
2020
if: >
21-
github.event_name == 'workflow_dispatch' ||
22-
(github.event_name == 'pull_request' && !startsWith(github.head_ref, 'ort-diff-for-'))
21+
github.repository_owner == 'valkey-io' &&
22+
(github.event_name == 'workflow_dispatch' ||
23+
(github.event_name == 'pull_request' && !startsWith(github.head_ref, 'ort-diff-for-')))
2324
strategy:
2425
fail-fast: false
2526
env:

.github/workflows/semgrep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
image: semgrep/semgrep
3131

3232
# Skip any PR created by dependabot to avoid permission issues:
33-
if: (github.actor != 'dependabot[bot]')
33+
if: (github.actor != 'dependabot[bot]' && github.repository_owner == 'valkey-io')
3434

3535
steps:
3636
# Fetch project source with GitHub Actions Checkout.

.github/workflows/stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
stale:
1010
runs-on: ubuntu-latest
11+
if: github.repository_owner == 'valkey-io'
1112
permissions:
1213
issues: write
1314
pull-requests: write

0 commit comments

Comments
 (0)