From a80e11be62dedc787f3050fdef9dbc54fa3d969f Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 23 Oct 2025 12:40:03 -0400 Subject: [PATCH] ci: adds conditions to avoid jobs which depends on tokens to run on forks --- .github/workflows/sync-dev-to-vX.Y-dev.yaml | 1 + .github/workflows/sync-main-to-dev.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/sync-dev-to-vX.Y-dev.yaml b/.github/workflows/sync-dev-to-vX.Y-dev.yaml index 3019659006..d2da4d4ea2 100644 --- a/.github/workflows/sync-dev-to-vX.Y-dev.yaml +++ b/.github/workflows/sync-dev-to-vX.Y-dev.yaml @@ -15,6 +15,7 @@ on: jobs: sync-branches: + if: github.repository == 'OAI/OpenAPI-Specification' runs-on: ubuntu-latest steps: - name: Generate access token diff --git a/.github/workflows/sync-main-to-dev.yaml b/.github/workflows/sync-main-to-dev.yaml index 09e1cd16e9..ea2a1b901e 100644 --- a/.github/workflows/sync-main-to-dev.yaml +++ b/.github/workflows/sync-main-to-dev.yaml @@ -15,6 +15,7 @@ on: jobs: sync-branch: + if: github.repository == 'OAI/OpenAPI-Specification' runs-on: ubuntu-latest steps: - name: Generate access token