From b504acf77c8132e7503339d8f01b4d1bc92a4657 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 26 Aug 2024 10:16:37 +0200 Subject: [PATCH] Avoid running sync jobs in forks --- .github/workflows/sync-main-doc.yml | 1 + .github/workflows/sync-working-groups.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/sync-main-doc.yml b/.github/workflows/sync-main-doc.yml index 0e178922282..ea43c8016ec 100644 --- a/.github/workflows/sync-main-doc.yml +++ b/.github/workflows/sync-main-doc.yml @@ -7,6 +7,7 @@ on: jobs: sync: runs-on: ubuntu-latest + if: github.repository == 'quarkusio/quarkusio.github.io' steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/sync-working-groups.yml b/.github/workflows/sync-working-groups.yml index 24ab4f01f9d..d7f77a98b1b 100644 --- a/.github/workflows/sync-working-groups.yml +++ b/.github/workflows/sync-working-groups.yml @@ -10,6 +10,7 @@ on: jobs: sync: + if: github.repository == 'quarkusio/quarkusio.github.io' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4