Skip to content

Commit

Permalink
Changed yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
baghdasarovnorayr committed Jul 21, 2023
1 parent 6beaaf0 commit 310c59e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR

on:
pull_request:
branches: [ prod, dev, staging, v2 ]
branches: [prod, dev, staging, v2]

jobs:
build:
Expand All @@ -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
if: contains(steps.join_files.outputs.files, 'app/api')
run: make build-docker-image-pr -e COMPONENT=api

0 comments on commit 310c59e

Please sign in to comment.