File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,15 @@ jobs:
1818 with :
1919 fetch-depth : ${{ github.event_name == 'pull_request' && 2 || 0 }}
2020
21+ # https://stackoverflow.com/a/74268200/861745
2122 - name : Get changed files
2223 id : changed-files
2324 shell : bash
2425 run : |
2526 if ${{ github.event_name == 'pull_request' }}; then
26- echo "changed_files=$(git diff --name-only -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
27+ echo "changed_files=$(git diff --name-only -r HEAD^1 HEAD | grep 'Relays.dat$' | xargs)" >> $GITHUB_OUTPUT
2728 else
28- echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
29+ echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | grep 'Relays.dat$' | xargs)" >> $GITHUB_OUTPUT
2930 fi
3031
3132 - name : List changed files
You can’t perform that action at this time.
0 commit comments