Fix changed-files for cases where no python files changed (#4)

## Problem
When a PR contains no changed python files, but changed-files is set to
true, ruff will run on all files, including ones not changed.

## Solution
Pass the input through to the script and short circuit to success in
cases where both the flag is set and no python files were changed.
This commit is contained in:
David J. Felix
2024-09-30 12:17:11 -05:00
committed by GitHub
parent 701f39cb3f
commit 61703ed12e
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -41,6 +41,7 @@ runs:
INPUT_ARGS: ${{ inputs.args }}
INPUT_SRC: ${{ inputs.src }}
INPUT_VERSION: ${{ inputs.version }}
IS_CHANGED_FILES_ENABLED: ${{ inputs.changed-files }}
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
pythonioencoding: utf-8
shell: bash