Skip to content

Commit

Permalink
uniq the files returned if a file is updated in multiple commits
Browse files Browse the repository at this point in the history
  • Loading branch information
jsegal205 committed Oct 30, 2024
1 parent 6595cf4 commit 081a02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/validate_company_industry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Get changed files
id: changed_files
run: |
changed_files=$(git log --name-only $(git merge-base origin/main HEAD)..HEAD | grep priv/companies/)
changed_files=$(git log --name-only $(git merge-base origin/main HEAD)..HEAD | grep priv/companies/ | uniq)
echo "files=${changed_files}" >> $GITHUB_OUTPUT
- name: Run validation
Expand Down

0 comments on commit 081a02f

Please sign in to comment.