From da9fc7c70fa48dee8ea84ce4a2a30b88354f7781 Mon Sep 17 00:00:00 2001 From: Biplab Dutta Date: Wed, 7 Jan 2026 22:18:53 +0530 Subject: [PATCH] fix(workflows): correct sync directory workflow for scheduled runs (#1952) --- .github/workflows/sync-dirs.yaml | 4 +++- build.gradle.kts | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-dirs.yaml b/.github/workflows/sync-dirs.yaml index 996e95e5..6a947f64 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 diff --git a/build.gradle.kts b/build.gradle.kts index 02ee9988..a4337e44 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,7 +26,6 @@ plugins { alias(libs.plugins.module.graph) apply true alias(libs.plugins.detekt) apply false alias(libs.plugins.spotless) apply false - alias(libs.plugins.ktlint) apply false alias(libs.plugins.version.catalog.linter) apply true // Multiplatform plugins alias(libs.plugins.jetbrainsCompose) apply false