Skip to content

Commit

Permalink
doc: improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
austinletson committed Jun 10, 2024
1 parent 385a1cb commit e4239c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ inputs:
outputs:
build-status:
description: |
The status of the `lake build`.
Allowed values: "NOT_RUN" | "SUCCESS" | "FAILURE".
The status of the `lake build` step.
Allowed values: "SUCCESS" | "FAILURE" | "NOT_RUN".
value: ${{ steps.set-output-parameters.outputs.build-status }}
test-status:
description: |
The status of the `lake test`.
Allowed values: "NOT_RUN" | "SUCCESS" | "FAILURE".
The status of the `lake test` step.
Allowed values: "SUCCESS" | "FAILURE" | "NOT_RUN".
value: ${{ steps.set-output-parameters.outputs.test-status }}

runs:
Expand Down
5 changes: 3 additions & 2 deletions scripts/set_output_parameters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo "::group::Set Output Parameters"

# If the BUILD_STATUS environment variable is not set,
# set the `build-status` output parameter to NOT_RUN
# Otherwise, set it to the value of the BUILD_STATUS environment variable
# Otherwise, set it to the output of the `lake build` step (the BUILD_STATUS environment variable)
if [ "$BUILD_STATUS" = "" ]; then
echo "build-status=NOT_RUN" >>"$GITHUB_OUTPUT"
else
Expand All @@ -14,10 +14,11 @@ fi

# If the TEST_STATUS environment variable is not set,
# set the `test-status` output parameter to NOT_RUN
# Otherwise, set it to the value of the TEST_STATUS environment variable
# Otherwise, set it to the output of the `lake test` step (the TEST_STATUS environment variable)
if [ "$TEST_STATUS" = "" ]; then
echo "test-status=NOT_RUN" >>"$GITHUB_OUTPUT"
else
echo "test-status=$TEST_STATUS" >>"$GITHUB_OUTPUT"
fi

echo "::endgroup::"

0 comments on commit e4239c4

Please sign in to comment.