Skip to content

Commit

Permalink
fix: only detect tsv file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed Nov 4, 2024
1 parent edb79a5 commit e073259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/project_data_change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
id: changes
run: |
CHANGED_FILES=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/commits/${{ github.sha }} | jq -r '.files[].filename' | grep 'project/data/')
https://api.github.com/repos/${{ github.repository }}/commits/${{ github.sha }} | jq -r '.files[].filename' | grep 'project/data/.*\.tsv$')
CHANGED_FILES=$(echo "$CHANGED_FILES" | tr '\n' ' ')
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
echo "Files changed: $CHANGED_FILES"
Expand Down

0 comments on commit e073259

Please sign in to comment.