Skip to content

Commit ac9d088

Browse files
committed
fix: don't use changed-files
1 parent 5a19a8c commit ac9d088

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ jobs:
7676
strategy:
7777
matrix:
7878
repos:
79-
- google/uv-metrics
8079
- toml-lang/toml
8180
- pre-commit/pre-commit
8281
- actions/starter-workflows

action.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ runs:
7070
config-file: ${{ inputs.config-file }}
7171
turo-conventional-commit: ${{ inputs.turo-conventional-commit }}
7272
- name: Get changed files
73-
uses: tj-actions/changed-files@v45
73+
uses: dorny/paths-filter@v3
74+
with:
75+
list-files: shell
76+
filters: |
77+
changes:
78+
- '**'
7479
if: inputs.only-changed == 'true'
7580
id: changed-files
7681
- name: Select files to run pre-commit against
@@ -79,7 +84,7 @@ runs:
7984
echo "PRE_COMMIT_ARGS=--all-files" >> "$GITHUB_ENV"
8085
[[ "${{ steps.changed-files.outputs.all_changed_files_count }}" != "0" ]] || exit 0
8186
if [[ "${{ inputs.only-changed }}" == "true" ]]; then
82-
PRE_COMMIT_ARGS="--files ${{ steps.changed-files.outputs.all_changed_files }}"
87+
PRE_COMMIT_ARGS="--files ${{ steps.changed-files.outputs.changes_files }}"
8388
echo "PRE_COMMIT_ARGS=$PRE_COMMIT_ARGS" >> "$GITHUB_ENV"
8489
fi
8590

0 commit comments

Comments
 (0)