From db23ba2dad9a0eeefd2ad196f7a2fa94a18dd4c8 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Wed, 13 Apr 2022 22:04:28 +0100 Subject: [PATCH] Change how branch is determined --- .github/workflows/budibase_ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index cdc0006970..15a00aa8c4 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -12,6 +12,9 @@ on: - master - develop +env: + branch: ${{ github.event.pull_request.head.ref }} + jobs: build: runs-on: ubuntu-latest @@ -23,16 +26,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Extract branch name - shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" - id: extract_branch - - - name: Checkout + - name: Checkout budibase-pro uses: actions/checkout@v2 with: repository: budibase/budibase-pro - ref: ${{ steps.extract_branch.outputs.branch }} + ref: ${{ env.branch }} path: './pro' token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - run: mv pro ../budibase-pro