From bf706cac0ffbab43b0e88f3ce957d0c96ef5d643 Mon Sep 17 00:00:00 2001 From: mastersans Date: Fri, 29 Mar 2024 15:40:43 +0530 Subject: [PATCH] fix: first try --- .github/workflows/test-out.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test-out.yml diff --git a/.github/workflows/test-out.yml b/.github/workflows/test-out.yml new file mode 100644 index 0000000000..f7b943a01a --- /dev/null +++ b/.github/workflows/test-out.yml @@ -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 }}" + + + \ No newline at end of file