Change how branch is determined
This commit is contained in:
parent
bdf1fba544
commit
db23ba2dad
|
@ -12,6 +12,9 @@ on:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
|
env:
|
||||||
|
branch: ${{ github.event.pull_request.head.ref }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -23,16 +26,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Extract branch name
|
- name: Checkout budibase-pro
|
||||||
shell: bash
|
|
||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
|
||||||
id: extract_branch
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: budibase/budibase-pro
|
repository: budibase/budibase-pro
|
||||||
ref: ${{ steps.extract_branch.outputs.branch }}
|
ref: ${{ env.branch }}
|
||||||
path: './pro'
|
path: './pro'
|
||||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
- run: mv pro ../budibase-pro
|
- run: mv pro ../budibase-pro
|
||||||
|
|
Loading…
Reference in New Issue