Skip to content

Commit

Permalink
workflows: tweak CHANGED_FILES regex to only cover *.py and kci
Browse files Browse the repository at this point in the history
Tweak the regex used when making the list of CHANGED_FILES to match
any *.py file or the kci tool but not any other file.  This avoids
adding linter annotations on any *kci files by mistake.

Signed-off-by: Guillaume Tucker <[email protected]>
  • Loading branch information
gctucker committed Feb 24, 2023
1 parent f814458 commit fb5b9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

- name: Get changed python files between base and head
run: >
echo CHANGED_FILES=$(echo $(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- | grep '\.py\|kci$')) >> $GITHUB_ENV
echo CHANGED_FILES=$(echo $(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- | grep '\.py\|^kci$')) >> $GITHUB_ENV
- if: env.CHANGED_FILES
uses: marian-code/python-lint-annotate@v3
Expand Down

0 comments on commit fb5b9b7

Please sign in to comment.