Skip to content

Commit 8b8c500

Browse files
committed
chore: exclude workflow files from upstream sync workflow
Signed-off-by: Bharath Nallapeta <bnallapeta@mirantis.com>
1 parent b3553f8 commit 8b8c500

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/upstream-sync.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ jobs:
9090
9191
# Force reset sync branch to upstream/main
9292
git reset --hard upstream/${BASE_BRANCH}
93+
94+
# Restore our own workflow files (don't sync upstream workflows)
95+
git checkout origin/${BASE_BRANCH} -- .github/workflows/ || true
96+
git commit -m "Preserve Mirantis workflow files" --allow-empty || true
97+
9398
# Push the updated sync branch
9499
git push -f origin ${SYNC_BRANCH}
95100

0 commit comments

Comments
 (0)