Skip to content

Commit

Permalink
create-release.sh: replace master with main
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Nov 9, 2024
1 parent 7fc8f56 commit 5faa627
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if [[ -z $version ]]; then
exit 1
fi

if [[ "$(git symbolic-ref --short HEAD)" != "master" ]]; then
echo "must be on master branch" >&2
if [[ "$(git symbolic-ref --short HEAD)" != "main" ]]; then
echo "must be on main branch" >&2
exit 1
fi

Expand All @@ -22,8 +22,8 @@ if [[ -n $uncommitted_changes ]]; then
echo -e "There are uncommitted changes, exiting:\n${uncommitted_changes}" >&2
exit 1
fi
git pull [email protected]:Mic92/nix-update master
unpushed_commits=$(git log --format=oneline origin/master..master)
git pull [email protected]:Mic92/nix-update main
unpushed_commits=$(git log --format=oneline origin/main..main)
if [[ $unpushed_commits != "" ]]; then
echo -e "\nThere are unpushed changes, exiting:\n$unpushed_commits" >&2
exit 1
Expand All @@ -35,4 +35,4 @@ nix develop -c pytest -s .
git commit -m "bump version ${version}"
git tag -e "${version}"

echo "now run 'git push --tags origin master'"
echo "now run 'git push --tags origin main'"

0 comments on commit 5faa627

Please sign in to comment.