Skip to content

Commit 020628c

Browse files
committed
replace changed-files action with git-fu
1 parent 05333b1 commit 020628c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/validate.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ jobs:
3838
- name: List All Changed Files
3939
if: ${{ !inputs.all_files }}
4040
id: list-changed-files
41-
uses: tj-actions/changed-files@v37
41+
run: |
42+
# also fetch main to diff against
43+
git fetch --depth=1 origin main
44+
# list Added, Copied, Modified, and Renamed files
45+
ACMR_FILES=`git diff origin/main --name-only --diff-filter=ACMR | xargs`
46+
# GitHub Actions output ritual
47+
echo "all_changed_files=$ACMR_FILES" >> "$GITHUB_OUTPUT"
4248
- name: List All Component Files
4349
if: ${{ inputs.all_files }}
4450
id: list-all-files

0 commit comments

Comments
 (0)