forked from intel/cve-bin-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3c608f
commit 0f09054
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Checkers-Action | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'cve_bin_tool/checkers/**/*.py' | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- 'cve_bin_tool/checkers/**/*.py' | ||
workflow_dispatch: # Triggered manually | ||
|
||
jobs: | ||
run-script: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Get changed files in checkers directory | ||
id: changed-files | ||
run: | | ||
files=$(git diff --name-only origin/main | grep '^cve_bin_tool/checkers/' | xargs) | ||
echo "::set-output name=files::$files" | ||
shell: bash | ||
|
||
- name: Print changed files in checkers directory | ||
run: | | ||
echo "Changed files in checkers directory:" | ||
echo "${{ steps.changed-files.outputs.files }}" | ||