From 01c2de153ee0e6bffbb3b15900a3dc54ae196f58 Mon Sep 17 00:00:00 2001 From: "J. Victor Martins" Date: Mon, 25 Aug 2025 23:25:06 -0700 Subject: [PATCH] fix(release): Push rc.0 if release branch exists (#206) --- .github/workflows/start-release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/start-release.yml b/.github/workflows/start-release.yml index 9e83bcd34a362..202fb47e2bfc3 100644 --- a/.github/workflows/start-release.yml +++ b/.github/workflows/start-release.yml @@ -187,6 +187,13 @@ jobs: git switch "${{needs.variables.outputs.branch}}" # This command pushes all new tags, not just the ones on the current branch. Therefore, it will push the tag we put on ${{env.main_branch}}. git push --follow-tags --set-upstream origin "${{needs.variables.outputs.branch}}" + - name: Push rc.0 tag when release branch exists + if: env.DRY_RUN == 'false' && steps.check-existing.outputs.branch-exists == 'true' + env: + GH_TOKEN: "${{ secrets.RHACS_BOT_GITHUB_TOKEN }}" + run: | + # When the release branch already exists we only push the newly created rc.0 tag. + git push origin "${{needs.variables.outputs.release}}.${{needs.variables.outputs.patch}}-rc.0" ci: name: Configure OpenShift CI jobs