fix(workflows): correct sync directory workflow for scheduled runs (#3046)

This commit is contained in:
Biplab Dutta 2025-12-31 22:24:16 +05:30 committed by GitHub
parent 99c8d68587
commit 411af7287f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,7 @@ on:
jobs: jobs:
sync-directories: sync-directories:
if: github.repository != 'openMF/kmp-project-template'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
@ -31,7 +32,8 @@ jobs:
- name: Add upstream remote and fetch - name: Add upstream remote and fetch
run: | 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 git fetch upstream || exit 1
- name: Check upstream/dev exists - name: Check upstream/dev exists