diff --git a/.github/workflows/pr_deploy.yaml b/.github/workflows/pr_deploy.yaml index b944c6db2..6658d7e3a 100644 --- a/.github/workflows/pr_deploy.yaml +++ b/.github/workflows/pr_deploy.yaml @@ -6,7 +6,9 @@ on: jobs: 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: Deploy on PR runs-on: ubuntu-latest steps: @@ -15,8 +17,10 @@ jobs: - name: check out trigger branch run: | - git fetch origin ${{ github.head_ref }} - git checkout ${{ github.head_ref }} + git fetch origin $BRANCH + git checkout $BRANCH + env: + BRANCH: ${{ github.head_ref }} # - name: check envs # run: | diff --git a/.github/workflows/pr_test.yml b/.github/workflows/pr_test.yml index b7c3b44f2..60b1dae6e 100644 --- a/.github/workflows/pr_test.yml +++ b/.github/workflows/pr_test.yml @@ -6,7 +6,7 @@ on: jobs: test_on_pr: - name: Test on PR + name: Run tests on PR runs-on: ubuntu-latest env: GOPATH: ${{ github.workspace }}