fix: ensure changes are check for
continuous-integration/drone/push Build is passing Details

Part of coop-cloud/organising#255.
This commit is contained in:
decentral1se 2021-11-22 17:49:31 +01:00
parent dbf84b7640
commit a18729bf98
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 10 additions and 0 deletions

View File

@ -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 {