Skip to content

Commit

Permalink
Update if checks
Browse files Browse the repository at this point in the history
  • Loading branch information
philnewm committed Aug 27, 2024
1 parent e2686e3 commit 92689a8
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 @@ -43,7 +43,7 @@ runs:
shell: bash
run: |
raw_output=$(gh pr list --state merged --search 'merged:>=${{ inputs.date }}' --json ${{ inputs.query_parameters }} --repo ${{ inputs.repo }})
if [ $raw_output == '[]' ]; then
if [[ "$raw_output" == '[]' ]]; then
echo "raw_output=" >> $GITHUB_OUTPUT
exit 0
fi
Expand All @@ -56,7 +56,7 @@ runs:
run: |
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
if [[ "$label_list" == '[]' ]]; then
echo "label_list=" >> $GITHUB_OUTPUT
exit 0
fi
Expand Down

0 comments on commit 92689a8

Please sign in to comment.