Skip to content

Commit

Permalink
Remove double 'if'
Browse files Browse the repository at this point in the history
  • Loading branch information
bandogora committed Nov 11, 2024
1 parent cc1e290 commit 6dbc935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
"https://api.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/releases/tags/${{ env.version_tag }}" \
-o release.json
html_url=$(grep -Po -m 1 '(?:\G(?!^)",|"html_url":\s*)\s*"\K[^"]+' release.json)
if if [[ -z "$html_url" ]]; then
if [[ -z "$html_url" ]]; then
echo "No release matching tag [${{ env.version_tag }}] found" >> $GITHUB_STEP_SUMMARY
echo "needs_release=true" >> $GITHUB_OUTPUT
else
Expand Down

0 comments on commit 6dbc935

Please sign in to comment.