Skip to content

Commit f610b62

Browse files
authored
[patch] fix build (#134)
1 parent 48a6632 commit f610b62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
5555
gitmsg="${{ github.event.commits[0].message }}"
5656
echo "Commit: $gitmsg"
57-
if [[ "$branch" == "main" ]]; then
57+
if [[ "$branch" == "refs/heads/main" ]]; then
5858
if [[ "$gitmsg" =~ "[patch]" ]]; then
5959
echo "publish patch"
6060
npm run publish:patch
@@ -126,7 +126,7 @@ jobs:
126126
echo "Commit: $gitmsg"
127127
128128
129-
if [[ "$branch" == "main" ]]; then
129+
if [[ "$branch" == "refs/heads/main" ]]; then
130130
echo "main branch published in diff step"
131131
exit 0;
132132
fi

0 commit comments

Comments
 (0)