Skip to content

Commit 9fb2ea2

Browse files
authored
fix: upsert-release detect existing version
1 parent dcfc9df commit 9fb2ea2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/upsert-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ jobs:
3939
id: check_release
4040
run: |
4141
set +e
42-
gh release view "${{ inputs.version }}" > /dev/null 2>&1
42+
curl -Lf \
43+
-H "Accept: application/vnd.github+json" \
44+
-H "Authorization: Bearer ${GH_TOKEN}" \
45+
-H "X-GitHub-Api-Version: 2022-11-28" \
46+
https://api.github.com/repos/lenra-io/app-reveel/releases/tags/v${{ inputs.version }} > /dev/null 2>&1
47+
4348
if [ $? -eq 0 ]; then
4449
echo "exists=true" >> $GITHUB_OUTPUT
4550
else

0 commit comments

Comments
 (0)