Skip to content

Commit 1e206ea

Browse files
Attempt at solving the tag situation
Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
1 parent 5f6cbf3 commit 1e206ea

1 file changed

Lines changed: 3 additions & 20 deletions

File tree

.github/workflows/qcom-promote-upstream-reusable-workflow.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ jobs:
205205
- name: Merge upstream tag into upstream/latest
206206
working-directory: ./package-repo
207207
run: |
208-
209208
# If the upstream/latest branch does not exist yet, create it and give it
210209
# the history of upstream directly, instead of creating an --allow-empty commit
211210
# which will be dragged along.
@@ -214,27 +213,11 @@ jobs:
214213
else
215214
# The branch exists, check it out and promote it to the upstream tag
216215
git checkout upstream/latest
217-
git merge ${{inputs.upstream-tag}}
218-
fi
219-
220-
- name: Strip .github/workflows from upstream/latest
221-
working-directory: ./package-repo
222-
run: |
223-
# Since Github does not allow pushing workflows using the GITHUB_TOKEN, remove .github/workflows if present.
224-
225-
git config user.name "${{vars.DEB_PKG_BOT_CI_NAME}}"
226-
git config user.email "${{vars.DEB_PKG_BOT_CI_EMAIL}}"
227-
228-
git checkout upstream/latest
229216
230-
# Remove .github/workflows/ if present to avoid GITHUB_TOKEN push restrictions.
231-
# The upstream source repo workflows are not relevant to the packaging repo.
232-
if [ -d .github/workflows ]; then
233-
git rm -rf .github/
234-
git commit -s -m "Remove .github/workflows from upstream source"
217+
../qcom-build-utils/scripts/merge_debian_packaging_upstream ${{inputs.upstream-tag}}
235218
fi
236219
237-
- name: Merge upstream tag into packaging branch
220+
- name: Merge upstream into packaging branch
238221
working-directory: ./package-repo
239222
run: |
240223
git config user.name "${{vars.DEB_PKG_BOT_CI_NAME}}"
@@ -244,7 +227,7 @@ jobs:
244227
245228
git checkout -b debian/pr/${{env.NORMALIZED_VERSION}}-1
246229
247-
../qcom-build-utils/scripts/merge_debian_packaging_upstream ${{inputs.upstream-tag}}
230+
git merge --no-edit upstream/latest
248231
249232
- name: Promote Changelog
250233
working-directory: ./package-repo

0 commit comments

Comments
 (0)