1
0
Fork 0
mirror of synced 2024-06-26 10:00:41 +12:00

Change how branch is determined

This commit is contained in:
Rory Powell 2022-04-13 22:04:28 +01:00
parent fde711b1ea
commit 0420a8f38d

View file

@ -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