From 1deec3b1aba80586df88202629393dcb79cc46e0 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Sat, 13 Dec 2025 15:05:38 -0500 Subject: [PATCH] Run workflows only on main repo --- .github/workflows/auto-update.yml | 2 ++ .github/workflows/build-1218.yml | 2 ++ .github/workflows/build-pr.yml | 2 ++ .github/workflows/publish-api.yml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index afe1f4ea..2748a08a 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -7,6 +7,8 @@ on: jobs: build: + # Run workflow only on main repo + if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-latest steps: - name: Checkout Leaf repository diff --git a/.github/workflows/build-1218.yml b/.github/workflows/build-1218.yml index b9470719..82a0363c 100644 --- a/.github/workflows/build-1218.yml +++ b/.github/workflows/build-1218.yml @@ -7,6 +7,8 @@ on: jobs: build: + # Run workflow only on main repo + if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} runs-on: blacksmith-8vcpu-ubuntu-2204 env: BUILD_NUMBER: ${{ github.run_number }} diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index a3d22bb9..dbf6087d 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -6,6 +6,8 @@ on: jobs: build: + # Run workflow only on main repo + if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} runs-on: blacksmith-8vcpu-ubuntu-2204 env: GRAALVM_ARGS: "-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector" diff --git a/.github/workflows/publish-api.yml b/.github/workflows/publish-api.yml index 35de5cb9..26018624 100644 --- a/.github/workflows/publish-api.yml +++ b/.github/workflows/publish-api.yml @@ -6,6 +6,8 @@ on: jobs: build: + # Run workflow only on main repo + if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} runs-on: ubuntu-latest env: BUILD_NUMBER: ${{ github.run_number }}