Skip to content

Commit a1edc42

Browse files
committed
fix: changed files not correctly being detected
1 parent 138bfc4 commit a1edc42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ runs:
9090
shell: bash
9191
run: |
9292
echo "PRE_COMMIT_ARGS=--all-files" >> "$GITHUB_ENV"
93-
[[ "${{ steps.changed-files.outputs.any_changed }}" == "true" ]] || exit 0
93+
[[ "${{ steps.changed-files.outputs.all_changed_files_count }}" != "0" ]] || exit 0
9494
if [[ "${{ inputs.only-changed }}" == "true" ]]; then
95-
PRE_COMMIT_ARGS="--files ${{ steps.changed-files.outputs.files}}"
95+
PRE_COMMIT_ARGS="--files ${{ steps.changed-files.outputs.all_changed_files }}"
9696
echo "PRE_COMMIT_ARGS=$PRE_COMMIT_ARGS" >> "$GITHUB_ENV"
9797
fi
9898
- name: Pre-commit (action)

0 commit comments

Comments
 (0)