From 411af7287fd22953f145819e597271ce6a25ca75 Mon Sep 17 00:00:00 2001 From: Biplab Dutta Date: Wed, 31 Dec 2025 22:24:16 +0530 Subject: [PATCH] fix(workflows): correct sync directory workflow for scheduled runs (#3046) --- .github/workflows/sync-dirs.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-dirs.yaml b/.github/workflows/sync-dirs.yaml index 996e95e55..6a947f649 100644 --- a/.github/workflows/sync-dirs.yaml +++ b/.github/workflows/sync-dirs.yaml @@ -12,6 +12,7 @@ on: jobs: sync-directories: + if: github.repository != 'openMF/kmp-project-template' runs-on: ubuntu-latest permissions: contents: write @@ -31,7 +32,8 @@ jobs: - name: Add upstream remote and fetch run: | - git remote add upstream ${{ inputs.upstream }} || true + UPSTREAM="${{ inputs.upstream || 'https://github.com/openMF/kmp-project-template.git' }}" + git remote add upstream "$UPSTREAM" || true git fetch upstream || exit 1 - name: Check upstream/dev exists