Skip to content

Commit

Permalink
Update empty string output
Browse files Browse the repository at this point in the history
  • Loading branch information
philnewm committed Aug 27, 2024
1 parent 92689a8 commit 7c52263
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 @@ -44,7 +44,7 @@ runs:
run: |
raw_output=$(gh pr list --state merged --search 'merged:>=${{ inputs.date }}' --json ${{ inputs.query_parameters }} --repo ${{ inputs.repo }})
if [[ "$raw_output" == '[]' ]]; then
echo "raw_output=" >> $GITHUB_OUTPUT
echo "raw_output=''" >> $GITHUB_OUTPUT
exit 0
fi
Expand All @@ -57,7 +57,7 @@ runs:
cd $GITHUB_ACTION_PATH
label_list=$(python -c 'import fetch_github_data; print(fetch_github_data.get_labels())' "${{ inputs.repo }}" "${{ inputs.query_parameters }}" "${{ inputs.date }}")
if [[ "$label_list" == '[]' ]]; then
echo "label_list=" >> $GITHUB_OUTPUT
echo "label_list=''" >> $GITHUB_OUTPUT
exit 0
fi
Expand Down

0 comments on commit 7c52263

Please sign in to comment.