From 1b1ed93aff5b21a82c2864f1e3f85963a2eafaa3 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Thu, 12 Aug 2021 01:23:23 +0200 Subject: [PATCH] chore: does this work permalink: http://whatthecommit.com/767d85f714124a446322db417a3217cc --- .github/workflows/continuous-delivery.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index ff50e61207..e0929f86a9 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -51,7 +51,7 @@ jobs: run: | # Resolve the tag to be used. "next" for push events, "pr-{prNumber}" for dispatch events. TAG=$([[ ${{ github.event_name }} == 'push' ]] && echo 'next' || echo 'pr-${{ github.event.inputs.prNumber }}') - BRANCH=$(echo '${{ github.event.ref }}' | sed 's/refs\/heads\///g') + BRANCH=$(echo '${{ github.event.inputs.ref || 'main' }}') # Bump and publish yarn lerna publish --yes --conventional-prerelease --ignore-scripts --no-verify-access --no-git-tag-version --no-push --pre-dist-tag ${TAG} --preid "${TAG}.$(git rev-parse --verify --short HEAD)" --allow-branch ${BRANCH}