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 310c59e commit c99e095
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 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 @@ -22,13 +22,10 @@ jobs:
with:
output: ' '
- name: Show changed 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(' ') }}"
run: echo ${{steps.get_file_changes.outputs.files}}
- name: Build changed client
if: contains(steps.join_files.outputs.files, 'app/client')
if: contains(steps.get_file_changes.outputs.files, 'app/client')
run: make build-docker-image-pr -e COMPONENT=client
- name: Build changed api
if: contains(steps.join_files.outputs.files, 'app/api')
if: contains(steps.get_file_changes.outputs.files, 'app/api')
run: make build-docker-image-pr -e COMPONENT=api

0 comments on commit c99e095

Please sign in to comment.