Skip to content

Commit 1deec3b

Browse files
committed
Run workflows only on main repo
1 parent f2682d8 commit 1deec3b

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/auto-update.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
build:
10+
# Run workflow only on main repo
11+
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
1012
runs-on: ubuntu-latest
1113
steps:
1214
- name: Checkout Leaf repository

.github/workflows/build-1218.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
build:
10+
# Run workflow only on main repo
11+
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
1012
runs-on: blacksmith-8vcpu-ubuntu-2204
1113
env:
1214
BUILD_NUMBER: ${{ github.run_number }}

.github/workflows/build-pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66

77
jobs:
88
build:
9+
# Run workflow only on main repo
10+
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
911
runs-on: blacksmith-8vcpu-ubuntu-2204
1012
env:
1113
GRAALVM_ARGS: "-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector"

.github/workflows/publish-api.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66

77
jobs:
88
build:
9+
# Run workflow only on main repo
10+
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
911
runs-on: ubuntu-latest
1012
env:
1113
BUILD_NUMBER: ${{ github.run_number }}

0 commit comments

Comments
 (0)