mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-05-12 20:50:14 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user