fix: ensure changes are check for
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Part of coop-cloud/organising#255.
This commit is contained in:
parent
dbf84b7640
commit
a18729bf98
|
@ -47,6 +47,16 @@ func EnsureUpToDate(dir string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
recipeName := filepath.Base(dir)
|
||||
isClean, err := IsClean(recipeName)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !isClean {
|
||||
return fmt.Errorf("'%s' has locally unstaged changes", recipeName)
|
||||
}
|
||||
|
||||
branch := "master"
|
||||
if _, err := repo.Branch("master"); err != nil {
|
||||
if _, err := repo.Branch("main"); err != nil {
|
||||
|
|
Loading…
Reference in New Issue