mirror of
				https://kkgithub.com/actions/checkout
				synced 2025-11-04 08:11:53 +08:00 
			
		
		
		
	updating error handling
This commit is contained in:
		
							
								
								
									
										8
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@ -7204,7 +7204,13 @@ class GitAuthHelper {
 | 
				
			|||||||
            if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
 | 
					            if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
 | 
				
			||||||
                core.debug(`Unsetting HOME override`);
 | 
					                core.debug(`Unsetting HOME override`);
 | 
				
			||||||
                this.git.removeEnvironmentVariable('HOME');
 | 
					                this.git.removeEnvironmentVariable('HOME');
 | 
				
			||||||
                yield io.rmRF(this.temporaryHomePath);
 | 
					                yield io
 | 
				
			||||||
 | 
					                    .rmRF(this.temporaryHomePath)
 | 
				
			||||||
 | 
					                    // eslint-disable-next-line github/no-then
 | 
				
			||||||
 | 
					                    .catch(err => {
 | 
				
			||||||
 | 
					                    // eslint-disable-next-line i18n-text/no-en
 | 
				
			||||||
 | 
					                    core.warning(`Failed to remove temporary home directory: ${err}`);
 | 
				
			||||||
 | 
					                });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -197,7 +197,13 @@ class GitAuthHelper {
 | 
				
			|||||||
    if (this.temporaryHomePath?.length > 0) {
 | 
					    if (this.temporaryHomePath?.length > 0) {
 | 
				
			||||||
      core.debug(`Unsetting HOME override`)
 | 
					      core.debug(`Unsetting HOME override`)
 | 
				
			||||||
      this.git.removeEnvironmentVariable('HOME')
 | 
					      this.git.removeEnvironmentVariable('HOME')
 | 
				
			||||||
      await io.rmRF(this.temporaryHomePath)
 | 
					      await io
 | 
				
			||||||
 | 
					        .rmRF(this.temporaryHomePath)
 | 
				
			||||||
 | 
					        // eslint-disable-next-line github/no-then
 | 
				
			||||||
 | 
					        .catch(err => {
 | 
				
			||||||
 | 
					          // eslint-disable-next-line i18n-text/no-en
 | 
				
			||||||
 | 
					          core.warning(`Failed to remove temporary home directory: ${err}`)
 | 
				
			||||||
 | 
					        })
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user