Skip to content

Commit 2bbd8f4

Browse files
committed
fix review app determination logic
1 parent 4aa6280 commit 2bbd8f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/actions/set-heroku-app-name/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ runs:
2626
#
2727
# All other cases publish to the review app
2828
run: |-
29-
export CURRENT_DEFAULT_BRANCH=`git remote show origin | grep "HEAD branch" | cut -d ":" -f 2 | xargs`
3029
echo 'HEROKU_RELEASE_STORYBOOK_APP_NAME=false' >> $GITHUB_OUTPUT
31-
if [[ "${{ github.ref }}" = "${CURRENT_DEFAULT_BRANCH}" ]] ; then
30+
if [[ "${{ github.event.ref_name }}" = "${{ github.event.repository.default_branch }}" ]] ; then
3231
echo "Publishing to UPCOMING..."
3332
echo 'HEROKU_APP_NAME=${HEROKU_APP_UPCOMING}' >> $GITHUB_OUTPUT
3433
echo 'HEROKU_RELEASE_STORYBOOK_APP_NAME=storybook-upcoming' >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)