瀏覽代碼

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

Mohammed Nafees 4 年之前
父節點
當前提交
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 {