Просмотр исходного кода

do not check for home dir for create and update in Github Actions runner

Mohammed Nafees 4 лет назад
Родитель
Сommit
49dc85fd20
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      cli/cmd/create.go
  2. 1 1
      cli/cmd/deploy.go

+ 1 - 1
cli/cmd/create.go

@@ -183,7 +183,7 @@ func createFull(_ *types.GetAuthenticatedUserResponse, client *api.Client, args
 		return err
 	}
 
-	if source == "local" && fullPath == homedir.HomeDir() {
+	if os.Getenv("GITHUB_ACTIONS") == "" && source == "local" && fullPath == homedir.HomeDir() {
 		proceed, err := utils.PromptConfirm("You are deploying your home directory. Do you want to continue?", false)
 
 		if err != nil {

+ 1 - 1
cli/cmd/deploy.go

@@ -327,7 +327,7 @@ func updateFull(_ *types.GetAuthenticatedUserResponse, client *api.Client, args
 		return err
 	}
 
-	if source == "local" && fullPath == homedir.HomeDir() {
+	if os.Getenv("GITHUB_ACTIONS") == "" && source == "local" && fullPath == homedir.HomeDir() {
 		proceed, err := utils.PromptConfirm("You are deploying your home directory. Do you want to continue?", false)
 
 		if err != nil {