Skip to content

Commit

Permalink
Merge pull request #2255 from jdurgin/wip-website-pr-branch
Browse files Browse the repository at this point in the history
ceph-website-prs: disallow branches named 'main'

Reviewed-by: Dan Mick <[email protected]>
  • Loading branch information
jdurgin authored Jun 12, 2024
2 parents 74b6da6 + 9fcef2b commit 6e02b6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ceph-website-prs/build/build
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ npm ci

npm run build:development

if [ "$BRANCH" = "main" ]; then
echo "branch must not be named 'main', exiting"
exit 1
fi

if [ ! -d /opt/www/${BRANCH} ]; then
mkdir -p /opt/www/${BRANCH}
fi
Expand Down

0 comments on commit 6e02b6c

Please sign in to comment.