Skip to content

Commit f5ac72f

Browse files
committed
get only Relays.dat
1 parent a3acbd7 commit f5ac72f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ParseRelaysDotDat.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)