From 14ffba2e12cc73e28f8c1f1a52fb95d6431e0410 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Wed, 20 Apr 2022 16:21:05 +0100 Subject: [PATCH] Resolve current branch on release job --- .github/workflows/budibase_ci.yml | 4 ++-- .github/workflows/release-develop.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index d931277674..bbab4d5bb7 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -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 diff --git a/.github/workflows/release-develop.yml b/.github/workflows/release-develop.yml index 1def30df31..8747b66d0e 100644 --- a/.github/workflows/release-develop.yml +++ b/.github/workflows/release-develop.yml @@ -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