diff --git a/ubuntu/git_diff/action.yml b/ubuntu/git_diff/action.yml index 4e987d98..6e781be2 100644 --- a/ubuntu/git_diff/action.yml +++ b/ubuntu/git_diff/action.yml @@ -46,20 +46,25 @@ runs: echo "::group::Get git modifications of file ${{ inputs.file-path }}" git diff "${{ inputs.base-ref }}" "${{ inputs.head-ref }}" ${{ inputs.diff-args }} -- "${{ inputs.file-path }}" > "${{ inputs.result-file }}" + cat "${{ inputs.result-file }}" if [ -s "${{ inputs.result-file }}" ]; then - # echo "::set-output name=have-changes::true" - echo "{ have-changes }={ true }" >> $GITHUB_OUTPUT + echo "::set-output name=have-changes::true" + echo "have-changes=true" >> $GITHUB_OUTPUT + echo "File has changes" else - # echo "::set-output name=have-changes::false" - echo "{ have-changes }={ false }" >> $GITHUB_OUTPUT + echo "::set-output name=have-changes::false" + echo "have-changes=false" >> $GITHUB_OUTPUT + echo "File has not changes" fi # echo "::set-output name=diff-file-result::$(cat "${{ inputs.result-file }}")" - echo "{ diff-file-result }={ $(cat "${{ inputs.result-file }}") }" >> $GITHUB_OUTPUT + # echo "diff-file-result=$(cat "${{ inputs.result-file }}")" >> $GITHUB_OUTPUT + + cat $GITHUB_OUTPUT echo "::endgroup::"