mirror of
				https://gitea.com/actions/upload-artifact.git
				synced 2025-11-04 05:39:12 +08:00 
			
		
		
		
	Testing again
This commit is contained in:
		
							
								
								
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -3997,7 +3997,6 @@ function run() {
 | 
				
			|||||||
            const searchResult = yield search_1.findFilesToUpload(inputs.searchPath);
 | 
					            const searchResult = yield search_1.findFilesToUpload(inputs.searchPath);
 | 
				
			||||||
            if (searchResult.filesToUpload.length === 0) {
 | 
					            if (searchResult.filesToUpload.length === 0) {
 | 
				
			||||||
                // No files were found, different use cases warrant different types of behavior if nothing is found
 | 
					                // No files were found, different use cases warrant different types of behavior if nothing is found
 | 
				
			||||||
                console.log(inputs.ifNoFilesFound);
 | 
					 | 
				
			||||||
                switch (inputs.ifNoFilesFound) {
 | 
					                switch (inputs.ifNoFilesFound) {
 | 
				
			||||||
                    case constants_1.NoFileOptions.warn: {
 | 
					                    case constants_1.NoFileOptions.warn: {
 | 
				
			||||||
                        core.warning(`No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.`);
 | 
					                        core.warning(`No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.`);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,7 +10,6 @@ async function run(): Promise<void> {
 | 
				
			|||||||
    const searchResult = await findFilesToUpload(inputs.searchPath)
 | 
					    const searchResult = await findFilesToUpload(inputs.searchPath)
 | 
				
			||||||
    if (searchResult.filesToUpload.length === 0) {
 | 
					    if (searchResult.filesToUpload.length === 0) {
 | 
				
			||||||
      // No files were found, different use cases warrant different types of behavior if nothing is found
 | 
					      // No files were found, different use cases warrant different types of behavior if nothing is found
 | 
				
			||||||
      console.log(inputs.ifNoFilesFound)
 | 
					 | 
				
			||||||
      switch (inputs.ifNoFilesFound) {
 | 
					      switch (inputs.ifNoFilesFound) {
 | 
				
			||||||
        case NoFileOptions.warn: {
 | 
					        case NoFileOptions.warn: {
 | 
				
			||||||
          core.warning(
 | 
					          core.warning(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user