Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanm committed Aug 25, 2024
1 parent a8a76e6 commit 70c4dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ runs:
working-directory: ${{ inputs.working-directory }}
run: |
# Update inner releases
MINOR_RELEASE_EXISTS="`(gh release view ${MINOR_TAG} --json id -q .id) || echo 0`"
MAJOR_RELEASE_EXISTS="`(gh release view ${MAJOR_TAG} --json id -q .id) || echo 0`"
MINOR_RELEASE_EXISTS="`(gh release view ${MINOR_TAG} --json id -q .id | wc -l | tr -d '[:space:]') || echo 0`"
MAJOR_RELEASE_EXISTS="`(gh release view ${MAJOR_TAG} --json id -q .id | wc -l | tr -d '[:space:]') || echo 0`"
if [[ "${MINOR_RELEASE_EXISTS}${MAJOR_RELEASE_EXISTS}" -eq 0 ]]; then
echo "::warning::No inner release to update !"
exit 0
Expand Down

0 comments on commit 70c4dac

Please sign in to comment.