check existing PR later if has updateScript

This commit is contained in:
Ryan Mulligan 2021-08-27 13:12:01 -07:00
parent 5ae5261c11
commit 7267bc6968

View File

@ -218,7 +218,8 @@ updatePackageBatch log updateEnv@UpdateEnv {..} mergeBaseOutpathsContext =
Skiplist.attrPath attrPath
when pr do
Git.checkAutoUpdateBranchDoesntExist packageName
GH.checkExistingUpdatePR updateEnv attrPath
unless hasUpdateScript do
GH.checkExistingUpdatePR updateEnv attrPath
unless hasUpdateScript do
Nix.assertNewerVersion updateEnv
@ -319,6 +320,10 @@ updatePackageBatch log updateEnv@UpdateEnv {..} mergeBaseOutpathsContext =
assertNotUpdatedOn updateEnv' derivationFile "master"
assertNotUpdatedOn updateEnv' derivationFile "staging"
assertNotUpdatedOn updateEnv' derivationFile "staging-next"
whenBatch updateEnv do
when pr do
when hasUpdateScript do
GH.checkExistingUpdatePR updateEnv' attrPath
Nix.build attrPath