Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Fix step-status script (#333)
Browse files Browse the repository at this point in the history
This PR fixes the `step-status` script, so the comparison cannot be
broken if the variable is unset/empty, preventing the error below:

![Screenshot 2024-06-25
100134-fs8](https://github.com/neuralmagic/nm-vllm/assets/642904/725ab2d9-d589-47c7-b8e8-30d8463528f0)

It also removes some unused variable definitions that were responsible
for this particular instance of the error.
  • Loading branch information
dbarbuzzi authored Jun 27, 2024
1 parent d4e2059 commit 80701e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/actions/nm-summary-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ runs:
using: composite
steps:
- run: |
BUILD_STATUS=${{ inputs.build_status }}
BUILD_EMOJI=$(./.github/scripts/step-status ${BUILD_STATUS})
WHL_STATUS=${{ inputs.whl_status }}
WHL_EMOJI=$(./.github/scripts/step-status ${WHL_STATUS})
echo "testmo URL: ${{ inputs.testmo_run_url }}" >> $GITHUB_STEP_SUMMARY
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/step-status
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

STEP_STATUS=${1}

if [ $STEP_STATUS -eq 0 ]; then
if [ "$STEP_STATUS" -eq 0 ]; then
# green check
echo -e "\xE2\x9C\x85"
else
Expand Down

0 comments on commit 80701e4

Please sign in to comment.