@actions/core 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/core.d.ts +2 -2
- package/lib/oidc-utils.js +1 -1
- package/lib/oidc-utils.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ const result = await core.group('Do something async', async () => {
|
|
|
121
121
|
|
|
122
122
|
This library has 3 methods that will produce [annotations](https://docs.github.com/en/rest/reference/checks#create-a-check-run).
|
|
123
123
|
```js
|
|
124
|
-
core.error('This is a bad error
|
|
124
|
+
core.error('This is a bad error, action may still succeed though.')
|
|
125
125
|
|
|
126
126
|
core.warning('Something went wrong, but it\'s not bad enough to fail the build.')
|
|
127
127
|
|
|
@@ -163,7 +163,7 @@ export interface AnnotationProperties {
|
|
|
163
163
|
startColumn?: number
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
* The
|
|
166
|
+
* The end column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
|
|
167
167
|
* Defaults to `startColumn` when `startColumn` is provided.
|
|
168
168
|
*/
|
|
169
169
|
endColumn?: number
|
package/lib/core.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare enum ExitCode {
|
|
|
21
21
|
Failure = 1
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Optional properties that can be sent with
|
|
24
|
+
* Optional properties that can be sent with annotation commands (notice, error, and warning)
|
|
25
25
|
* See: https://docs.github.com/en/rest/reference/checks#create-a-check-run for more information about annotations.
|
|
26
26
|
*/
|
|
27
27
|
export interface AnnotationProperties {
|
|
@@ -46,7 +46,7 @@ export interface AnnotationProperties {
|
|
|
46
46
|
*/
|
|
47
47
|
startColumn?: number;
|
|
48
48
|
/**
|
|
49
|
-
* The
|
|
49
|
+
* The end column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
|
|
50
50
|
* Defaults to `startColumn` when `startColumn` is provided.
|
|
51
51
|
*/
|
|
52
52
|
endColumn?: number;
|
package/lib/oidc-utils.js
CHANGED
|
@@ -44,7 +44,7 @@ class OidcClient {
|
|
|
44
44
|
.catch(error => {
|
|
45
45
|
throw new Error(`Failed to get ID Token. \n
|
|
46
46
|
Error Code : ${error.statusCode}\n
|
|
47
|
-
Error Message: ${error.
|
|
47
|
+
Error Message: ${error.message}`);
|
|
48
48
|
});
|
|
49
49
|
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
|
50
50
|
if (!id_token) {
|
package/lib/oidc-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oidc-utils.js","sourceRoot":"","sources":["../src/oidc-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,sDAA+C;AAC/C,wDAAqE;AACrE,iCAAuC;AAKvC,MAAa,UAAU;IACb,MAAM,CAAC,gBAAgB,CAC7B,UAAU,GAAG,IAAI,EACjB,QAAQ,GAAG,EAAE;QAEb,MAAM,cAAc,GAAmB;YACrC,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE,QAAQ;SACrB,CAAA;QAED,OAAO,IAAI,wBAAU,CACnB,qBAAqB,EACrB,CAAC,IAAI,8BAAuB,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC,EAC3D,cAAc,CACf,CAAA;IACH,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA;QAC3D,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAA;SACF;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAEO,MAAM,CAAC,aAAa;QAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAA;QAC9D,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;S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
"description": "Actions core lib",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"scripts": {
|
|
31
31
|
"audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json",
|
|
32
32
|
"test": "echo \"Error: run tests from root\" && exit 1",
|
|
33
|
-
"tsc": "tsc"
|
|
33
|
+
"tsc": "tsc -p tsconfig.json"
|
|
34
34
|
},
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/actions/toolkit/issues"
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"@types/node": "^12.0.2",
|
|
44
44
|
"@types/uuid": "^8.3.4"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|