Skip to content

Commit

Permalink
fixed new-release script to work with release branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martinsos committed Sep 29, 2022
1 parent f637dd2 commit da9074e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waspc/new-release
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da9074e

Please sign in to comment.