From 310c59e28f60f7f854fa73c9fb6bfd205552a353 Mon Sep 17 00:00:00 2001 From: Norayr Baghdasarov Date: Fri, 21 Jul 2023 11:07:31 +0400 Subject: [PATCH] Changed yaml file --- .github/workflows/pr.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 282e0d0ae..de99c41af 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -2,7 +2,7 @@ name: PR on: pull_request: - branches: [ prod, dev, staging, v2 ] + branches: [prod, dev, staging, v2] jobs: build: @@ -16,16 +16,19 @@ jobs: with: version: 8.4.0 - uses: actions/checkout@v2 - - name: Get changed files + - name: Get changed files id: get_file_changes uses: trilom/file-changes-action@v1.2.4 with: output: ' ' - name: Show changed files - run: echo ${{steps.get_file_changes.outputs.files}} + run: echo ${{ steps.get_file_changes.outputs.files }} + - name: Join changed files into a single string + id: join_files + run: echo "::set-output name=files::${{ steps.get_file_changes.outputs.files.join(' ') }}" - name: Build changed client - if: contains(steps.get_file_changes.outputs.files, 'app/client') + if: contains(steps.join_files.outputs.files, 'app/client') run: make build-docker-image-pr -e COMPONENT=client - name: Build changed api - if: contains(steps.get_file_changes.outputs.files, 'app/api') - run: make build-docker-image-pr -e COMPONENT=api \ No newline at end of file + if: contains(steps.join_files.outputs.files, 'app/api') + run: make build-docker-image-pr -e COMPONENT=api