Explorar el Código

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

Mohammed Nafees hace 4 años
padre
commit
49dc85fd20
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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 {