From be0d4cdff492483c0d14997897a195f4315efc1b Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Thu, 9 Oct 2025 06:30:59 -0500 Subject: [PATCH] feat(ci): Use `gh release edit` to retag releases (#3421) --- .github/workflows/create-or-promote-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-or-promote-release.yml b/.github/workflows/create-or-promote-release.yml index 9367c06b0..56ecb1f4b 100644 --- a/.github/workflows/create-or-promote-release.yml +++ b/.github/workflows/create-or-promote-release.yml @@ -98,15 +98,18 @@ jobs: - name: Create and push new tag if: ${{ !inputs.dry_run && inputs.channel == 'internal' }} + env: + GH_TOKEN: ${{ github.token }} run: | git tag ${{ steps.calculate_tags.outputs.tag_to_process }} git push origin ${{ steps.calculate_tags.outputs.tag_to_process }} - name: Create and push final tag if: ${{ !inputs.dry_run && inputs.channel != 'internal' }} + env: + GH_TOKEN: ${{ github.token }} run: | - git tag ${{ steps.calculate_tags.outputs.final_tag }} ${{ steps.calculate_tags.outputs.tag_to_process }} - git push origin ${{ steps.calculate_tags.outputs.final_tag }} + gh release edit ${{ steps.calculate_tags.outputs.tag_to_process }} --tag ${{ steps.calculate_tags.outputs.final_tag }} --title "${{ steps.calculate_tags.outputs.release_name }}" call-release-workflow: if: ${{ !inputs.dry_run && inputs.channel == 'internal' }}