Skip to content

Commit 7909c55

Browse files
vkuttypCopilot
andcommitted
Fix CI: replace actions/create-release@v1 with softprops/action-gh-release@v2
actions/create-release@v1 fails with 422 'already_exists' if the release for the tag was already created (e.g. re-pushed tag or prior run). softprops/action-gh-release@v2 upserts — creates or updates the existing release, making the release job idempotent. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent facc307 commit 7909c55

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,10 @@ jobs:
178178
echo "EOF" >> "$GITHUB_OUTPUT"
179179
180180
- name: Create GitHub Release
181-
uses: actions/create-release@v1
182-
env:
183-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
181+
uses: softprops/action-gh-release@v2
184182
with:
185-
tag_name: ${{ steps.version.outputs.tag }}
186-
release_name: CosmoSQLClient ${{ steps.version.outputs.tag }}
187-
body: ${{ steps.changelog.outputs.body }}
188-
draft: false
189-
prerelease: ${{ steps.version.outputs.prerelease }}
183+
tag_name: ${{ steps.version.outputs.tag }}
184+
name: CosmoSQLClient ${{ steps.version.outputs.tag }}
185+
body: ${{ steps.changelog.outputs.body }}
186+
draft: false
187+
prerelease: ${{ steps.version.outputs.prerelease }}

0 commit comments

Comments
 (0)