Skip to content

Commit 23bfc5c

Browse files
authored
Merge pull request #375 from snyk/chore/fix-publish-job-with-checkout
chore: restore to master branch after publishing to gh-pages
2 parents c8b2382 + 73efde8 commit 23bfc5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/publish-gh-pages.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#! /bin/bash
22
set -e
33

4+
trap "git checkout --force master" EXIT
5+
46
NEW_TAG=$1
57
echo About to update the gh-pages branch with new tag ${NEW_TAG}
68

0 commit comments

Comments
 (0)