fixed new-release script to work with release branch.

This commit is contained in:
Martin Sosic 2022-09-29 12:06:14 +02:00
parent f637dd206f
commit da9074e093

View File

@ -26,7 +26,7 @@ main = do
makeNewRelease :: String -> IO ()
makeNewRelease newVersion = do
(ExitSuccess, branchName) <- shellStrict "git rev-parse --abbrev-ref HEAD" empty
when (T.strip branchName /= "main") $ error "You must run this script from the main branch!"
when (T.strip branchName /= "release") $ error "You must run this script from the release branch!"
let cabalFileName = "waspc.cabal"
oldCabalFileContents <- T.unpack <$> T.IO.readFile cabalFileName