From 9fd9204a54d298ecf56281e7e60acd3abff14ae5 Mon Sep 17 00:00:00 2001 From: ilyakhd <14272298+IlyaKhD@users.noreply.github.com> Date: Fri, 4 Oct 2024 18:02:13 +0300 Subject: [PATCH] Replace get-changed-files action with the shared one --- .github/actions/get-changed-files/action.yml | 21 ------------------- .../demos_visual_tests_frameworks.yml | 9 ++++---- 2 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 .github/actions/get-changed-files/action.yml diff --git a/.github/actions/get-changed-files/action.yml b/.github/actions/get-changed-files/action.yml deleted file mode 100644 index 105f010561a5..000000000000 --- a/.github/actions/get-changed-files/action.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: 'Get changed files' -description: 'Get a list of the pull request files and save it to the file system as a JSON file' - -inputs: - path: - description: 'Path where find a changes' - required: true - result: - description: 'PAth to the result file' - required: true - -runs: - using: composite - steps: - - name: Get changed files - shell: bash - run: | - gh api \ - -H "Accept: application/vnd.github+json" \ - "/repos/{owner}/{repo}/pulls/${{github.event.pull_request.number}}/files" --paginate \ - --jq '.[] | select(.filename | contains("${{ inputs.path }}")) | {filename:.filename}' | jq -s > ${{ inputs.result }} diff --git a/.github/workflows/demos_visual_tests_frameworks.yml b/.github/workflows/demos_visual_tests_frameworks.yml index d3afed223523..e909f943d89d 100644 --- a/.github/workflows/demos_visual_tests_frameworks.yml +++ b/.github/workflows/demos_visual_tests_frameworks.yml @@ -165,13 +165,12 @@ jobs: uses: actions/checkout@v4 - name: Get changed files - uses: ./.github/actions/get-changed-files + uses: DevExpress/github-actions/get-changed-files@v1 if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'force all tests') - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - path: apps/demos/Demos - result: apps/demos/changed-files.json + gh-token: ${{ secrets.GITHUB_TOKEN }} + paths: 'apps/demos/Demos/**/*' + output: apps/demos/changed-files.json - name: Upload artifacts uses: actions/upload-artifact@v4