Skip to content

Commit 80f0551

Browse files
author
Matthew Fisher
committed
fix(gutenbuild): ensure we are on master before building
gutenbuild can sometimes fail halfway through the process. In those cases, we should ensure that we are on the master branch first rather than restore the master branch later.
1 parent 0e56d8a commit 80f0551

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

_scripts/gutenbuild

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ set -x
55

66
build_dest=$1
77

8+
# ensure we are on the master branch before building
9+
git checkout master
10+
811
PATH=$HOME/.local/bin:$PATH BUILDDIR=${build_dest} make deps build
912

1013
# build again, this time to /en/dev
@@ -18,6 +21,3 @@ for tag in $(git tag | grep -v "-alpha\|-beta\|-rc"); do
1821
git checkout $tag
1922
PATH=$HOME/.local/bin:$PATH BUILDDIR=${tag_build_dest} make deps build
2023
done
21-
22-
# restore back to master
23-
git checkout master

0 commit comments

Comments
 (0)