mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:58:56 +08:00 
			
		
		
		
	Add build scan link as a notice annotation
- Use 'notice' method introduced in @actions/core v1.5.0
This commit is contained in:
		
							
								
								
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -32,9 +32,9 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "@actions/core": {
 | 
					    "@actions/core": {
 | 
				
			||||||
      "version": "1.4.0",
 | 
					      "version": "1.5.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.4.0.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.5.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-CGx2ilGq5i7zSLgiiGUtBCxhRRxibJYU6Fim0Q1Wg2aQL2LTnF27zbqZOrxfvFQ55eSBW0L8uVStgtKMpa0Qlg=="
 | 
					      "integrity": "sha512-eDOLH1Nq9zh+PJlYLqEMkS/jLQxhksPNmUGNBHfa4G+tQmnIhzpctxmchETtVGyBOvXgOVVpYuE40+eS4cUnwQ=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "@actions/exec": {
 | 
					    "@actions/exec": {
 | 
				
			||||||
      "version": "1.1.0",
 | 
					      "version": "1.1.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@
 | 
				
			|||||||
  "license": "MIT",
 | 
					  "license": "MIT",
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@actions/cache": "1.0.7",
 | 
					    "@actions/cache": "1.0.7",
 | 
				
			||||||
    "@actions/core": "1.4.0",
 | 
					    "@actions/core": "1.5.0",
 | 
				
			||||||
    "@actions/exec": "1.1.0",
 | 
					    "@actions/exec": "1.1.0",
 | 
				
			||||||
    "@actions/github": "5.0.0",
 | 
					    "@actions/github": "5.0.0",
 | 
				
			||||||
    "@actions/glob": "0.2.0",
 | 
					    "@actions/glob": "0.2.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,6 +29,7 @@ export async function run(): Promise<void> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if (result.buildScanUrl) {
 | 
					        if (result.buildScanUrl) {
 | 
				
			||||||
            core.setOutput('build-scan-url', result.buildScanUrl)
 | 
					            core.setOutput('build-scan-url', result.buildScanUrl)
 | 
				
			||||||
 | 
					            core.notice(`Gradle build scan: ${result.buildScanUrl}`)
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (result.status !== 0) {
 | 
					        if (result.status !== 0) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user