فهرست منبع

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

Mohammed Nafees 4 سال پیش
والد
کامیت
7268f222fb
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 {