Skip to content

Commit 361a1ff

Browse files
fix(ci): properly detect changed files (ethereum-optimism#200)
CI was not properly detecting changed files after we changed to pull_request instead of pull_request_target.
1 parent 8eb9048 commit 361a1ff

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/validate.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,16 @@ jobs:
3636
- name: Install dependencies
3737
run: yarn --frozen-lockfile
3838

39+
- name: Get changed files
40+
id: changed-files
41+
uses: tj-actions/changed-files@v29
42+
with:
43+
files: |
44+
data/**
45+
3946
- name: Validate token list
4047
run: |
41-
CHANGED=$(git diff --name-only --cached | sed -nr "s/data\/(.*?)\/.*/\1/p" | paste -sd "," -)
48+
CHANGED=$(echo ${{ steps.changed-files.outputs.all_changed_files }} | sed -nr "s/data\/(.*?)\/.*/\1/p" | paste -sd "," -)
4249
yarn validate --datadir ./data --tokens "${CHANGED}" 2> err.out 1> std.out
4350
4451
- name: Upload artifacts

0 commit comments

Comments
 (0)