Skip to content

Commit

Permalink
fix: first try
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersans committed Mar 29, 2024
1 parent d3c608f commit bf706ca
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test-out.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Checkers-Action

on:
push:
branches: [main]
paths:
- 'cve_bin_tool/checkers/**/*.py'
pull_request:
branches: [main]
paths:
- 'cve_bin_tool/checkers/**/*.py'

jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Get changed or added files
id: get-changed-files
run: |
echo "::set-output name=files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^cve_bin_tool/checkers/')"
- name: Store filenames in a list
id: store-filenames
run: |
echo "::set-output name=filenames::$(echo "${{ steps.get-changed-files.outputs.files }}" | tr '\n' ',')"
- name: Print changed or added files
run: |
echo "Changed or Added Files:"
echo "${{ steps.store-filenames.outputs.filenames }}"

0 comments on commit bf706ca

Please sign in to comment.