Skip to content

Commit 86d66a0

Browse files
sync: drop legacy workflows_sync files
Remove deprecated per-repo workflows_sync.yml during sync. Use git add -A so deletions are staged. Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
1 parent 64a7906 commit 86d66a0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/workflows_sync.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ jobs:
110110
# Track if changes are needed
111111
isDirty=false
112112
113+
# Remove legacy per-repo workflows_sync workflow if present.
114+
# The source of truth is qcom-build-utils/.github/workflows/workflows_sync.yml.
115+
if [[ -f ".github/workflows/workflows_sync.yml" ]]; then
116+
echo " 🗑️ Removing deprecated workflows_sync.yml"
117+
rm ".github/workflows/workflows_sync.yml"
118+
isDirty=true
119+
fi
120+
113121
# Compare and sync workflow files
114122
for workflow in ../qcom-build-utils/.github/pkg-workflows/main/*.yml; do
115123
workflow_name=$(basename "$workflow")
@@ -136,7 +144,7 @@ jobs:
136144
if [[ "$isDirty" == "true" ]]; then
137145
echo " 📝 Creating branch and committing main branch changes"
138146
git checkout -b sync/qcom-build-utils-workflows 2>&1 | sed 's/^/ /'
139-
git add .github/workflows/
147+
git add -A .github/workflows/
140148
git commit -s -m "chore: sync workflows from qcom-build-utils" 2>&1 | sed 's/^/ /'
141149
142150
if [[ "$CONFIRMATION_INPUT" == "true" ]]; then

0 commit comments

Comments
 (0)