Skip to content

Commit

Permalink
feat: action
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersans committed Mar 29, 2024
1 parent d3c608f commit 0f09054
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/checker-test.yml
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 }}"

0 comments on commit 0f09054

Please sign in to comment.