Skip to content

Commit

Permalink
fix(action): fix command formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
beiertu-mms committed Mar 17, 2023
1 parent f67f4d2 commit a23c6a1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inputs:
outputs:
lint_output:
description: "Result from yamllint"
value: ${{ steps.lint.outputs.result }}
value: ${{ steps.output_result.outputs.result }}
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -75,13 +75,18 @@ runs:
config_data: ${{ steps.params.outputs.yamllint_config_data }}
strict: ${{ steps.params.outputs.yamllint_strict }}
no_warnings: ${{ steps.params.outputs.yamllint_no_warnings }}
run: |
yamllint ${{ inputs.files_or_dirs }} --format ${{ inputs.format }} \
${{ env.config_file }} \
${{ env.config_data }} \
${{ env.strict }} \
${{ env.no_warnings }} > result.txt
run: >-
yamllint ${{ inputs.files_or_dirs }}
--format ${{ inputs.format }}
${{ env.config_file }}
${{ env.config_data }}
${{ env.strict }}
${{ env.no_warnings }}
> result.txt
shell: bash

- id: output_result
run: |
echo "Yamllint result:"
cat result.txt
Expand Down

0 comments on commit a23c6a1

Please sign in to comment.