Skip to content

Commit 978a79d

Browse files
authored
Merge pull request #8719 from joffeoja/skip_run_on_forks
ci: skip scheduled and release workflows on forks
2 parents 6ea0539 + 2ef11d8 commit 978a79d

File tree

9 files changed

+18
-0
lines changed

9 files changed

+18
-0
lines changed

.github/workflows/beta-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
beta-release:
1717
name: Beta Release
1818
runs-on: ubuntu-latest
19+
# Only run this workflow on the main repository (continuedev/continue)
20+
if: github.repository == 'continuedev/continue'
1921
steps:
2022
- name: Checkout
2123
uses: actions/checkout@v5

.github/workflows/metrics.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
build:
1717
name: issue metrics
1818
runs-on: ubuntu-latest
19+
# Only run this workflow on the main repository (continuedev/continue)
20+
if: github.repository == 'continuedev/continue'
1921
permissions:
2022
issues: write
2123
pull-requests: read

.github/workflows/release-config-yaml.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ permissions:
1616

1717
jobs:
1818
release:
19+
# Only run this workflow on the main repository (continuedev/continue)
20+
if: github.repository == 'continuedev/continue'
1921
uses: ./.github/workflows/reusable-release.yml
2022
with:
2123
package-name: "config-yaml"

.github/workflows/release-fetch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ permissions:
1616

1717
jobs:
1818
release:
19+
# Only run this workflow on the main repository (continuedev/continue)
20+
if: github.repository == 'continuedev/continue'
1921
uses: ./.github/workflows/reusable-release.yml
2022
with:
2123
package-name: "fetch"

.github/workflows/release-llm-info.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ permissions:
1515

1616
jobs:
1717
release:
18+
# Only run this workflow on the main repository (continuedev/continue)
19+
if: github.repository == 'continuedev/continue'
1820
uses: ./.github/workflows/reusable-release.yml
1921
with:
2022
package-name: "llm-info"

.github/workflows/release-openai-adapters.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ permissions:
1616

1717
jobs:
1818
release:
19+
# Only run this workflow on the main repository (continuedev/continue)
20+
if: github.repository == 'continuedev/continue'
1921
uses: ./.github/workflows/reusable-release.yml
2022
with:
2123
package-name: "openai-adapters"

.github/workflows/snyk-agent.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
run-cn-task:
1111
runs-on: ubuntu-latest
12+
# Only run this workflow on the main repository (continuedev/continue)
13+
if: github.repository == 'continuedev/continue'
1214
steps:
1315
- name: Checkout repository
1416
uses: actions/checkout@v5

.github/workflows/stable-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
stable-release:
3333
name: Stable Release
3434
runs-on: ubuntu-latest
35+
# Only run this workflow on the main repository (continuedev/continue)
36+
if: github.repository == 'continuedev/continue'
3537
steps:
3638
- name: Checkout
3739
uses: actions/checkout@v5

.github/workflows/submit-github-dependency-graph.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ permissions:
1010
jobs:
1111
dependency-submission:
1212
runs-on: ubuntu-latest
13+
# Only run this workflow on the main repository (continuedev/continue)
14+
if: github.repository == 'continuedev/continue'
1315
steps:
1416
- name: Checkout sources
1517
uses: actions/checkout@v5

0 commit comments

Comments
 (0)