Skip to content

Commit

Permalink
fix workflow 2
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Nov 29, 2023
1 parent 6f5e8e6 commit 7a66384
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/pr_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
run: docker push ${{ steps.image.outputs.name }}

frontend_build_and_deploy:
if: startsWith(github.head_ref, 'feature') || startsWith(github.head_ref, 'fix')
if: |
( startsWith(github.head_ref, 'feature') ||
startsWith(github.head_ref, 'fix') )
name: Test and deploy on frontend PR
runs-on: ubuntu-latest
defaults:
Expand Down Expand Up @@ -115,6 +117,16 @@ jobs:
needs: [frontend_build_and_deploy, backend_build_and_deploy]
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@master

- name: check out trigger branch
run: |
git fetch origin $BRANCH
git checkout $BRANCH
env:
BRANCH: ${{ github.head_ref }}

- name: Record branch env
id: branch
run: |
Expand Down

0 comments on commit 7a66384

Please sign in to comment.