Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
katybaulch committed Mar 28, 2024
1 parent 8348d37 commit 2e9fbb5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,10 @@ runs:
run: |
echo "Outputting new tag..."
if [[ ${{ (inputs.pr_body != '' && inputs.pr_number != '') }} == true ]]; then
echo "PR body and number present: ${{ (inputs.pr_body != '' && inputs.pr_number != '') }}"
echo "Using new_tag from 'determine_next_tag_from_pr_event'"
echo "PR body and number present. Using new_tag from 'determine_next_tag_from_pr_event'"
echo "new_tag=${{ steps.determine_next_tag_from_pr_event.outputs.new_tag }}" >> "$GITHUB_OUTPUT"
elif [[ ${{ (inputs.pr_body == '' && inputs.pr_number == '') }} == true ]]; then
echo "PR body and number not present: ${{ (inputs.pr_body == '' && inputs.pr_number == '') }}"
echo "Using new_tag from 'determine_next_tag_retrospectively'"
echo "PR body and number not present. Using new_tag from 'determine_next_tag_retrospectively'"
echo "new_tag=${{ steps.determine_next_tag_retrospectively.outputs.new_tag }}" >> "$GITHUB_OUTPUT"
else
echo "PR body or number present. Either both or neither must be passed."
Expand Down

0 comments on commit 2e9fbb5

Please sign in to comment.