Resolve current branch on release job

This commit is contained in:
Rory Powell 2022-04-20 16:21:05 +01:00
parent 93c004a48c
commit 732ba40ff6
2 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@ on:
- develop
env:
branch: ${{ github.event.pull_request.head.ref }}
BRANCH: ${{ github.event.pull_request.head.ref }}
jobs:
build:
@ -36,7 +36,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: budibase/budibase-pro
ref: ${{ env.branch }}
ref: ${{ env.BRANCH }}
path: './pro'
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Setup pro

View File

@ -20,6 +20,7 @@ env:
POSTHOG_TOKEN: ${{ secrets.POSTHOG_TOKEN }}
INTERCOM_TOKEN: ${{ secrets.INTERCOM_TOKEN }}
POSTHOG_URL: ${{ secrets.POSTHOG_URL }}
BRANCH: ${{ github.event.pull_request.head.ref }}
jobs:
release:
@ -36,7 +37,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: budibase/budibase-pro
ref: ${{ env.branch }}
ref: ${{ env.BRANCH }}
path: './pro'
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Setup pro