Skip to content

Commit

Permalink
Improve IT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienvermeille committed Mar 1, 2024
1 parent 73dff64 commit 426aa6c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
outputs:
logs:
description: Logs from the pre-commit run command
value: ${{ steps.run-pre-commit.outputs_logs }}
value: ${{ steps.run-pre-commit.OUTPUT_LOGS }}

runs:
using: composite
Expand Down Expand Up @@ -47,6 +47,12 @@ runs:
name: Run pre-commit
run: |
output=$(pre-commit run --config="${{ inputs.config-path }}" --show-diff-on-failure --color=always ${{ inputs.extra-args }})
echo "outputs_logs=$(echo $output)" >> $GITHUB_OUTPUT
echo "OUTPUT_LOGS=$(echo $output)" >> $GITHUB_OUTPUT
echo "$output"
shell: bash
- name: json
run: |
echo $JSON
env:
JSON: ${{ toJSON(steps) }}
shell: bash

0 comments on commit 426aa6c

Please sign in to comment.