File tree Expand file tree Collapse file tree 5 files changed +9
-17
lines changed
Filter options
Expand file tree Collapse file tree 5 files changed +9
-17
lines changed
Original file line number Diff line number Diff line change @@ -20,10 +20,6 @@ inputs:
20
20
skip-token-revoke :
21
21
description : " If truthy, the token will not be revoked when the current job is complete"
22
22
required : false
23
- skip_token_revoke :
24
- description : " If truthy, the token will not be revoked when the current job is complete"
25
- required : false
26
- deprecationMessage : " 'skip_token_revoke' is deprecated and will be removed in a future version. Use 'skip-token-revoke' instead."
27
23
# Make GitHub API configurable to support non-GitHub Cloud use cases
28
24
# see https://github.com/actions/create-github-app-token/issues/77
29
25
github-api-url :
Original file line number Diff line number Diff line change 5
5
* @param {import("@octokit/request").request } request
6
6
*/
7
7
export async function post ( core , request ) {
8
- const skipTokenRevoke = Boolean (
9
- core . getInput ( "skip-token-revoke" ) || core . getInput ( "skip_token_revoke" )
10
- ) ;
8
+ const skipTokenRevoke = Boolean ( core . getInput ( "skip-token-revoke" ) ) ;
11
9
12
10
if ( skipTokenRevoke ) {
13
11
core . info ( "Token revocation was skipped" ) ;
@@ -35,8 +33,7 @@ export async function post(core, request) {
35
33
} ) ;
36
34
core . info ( "Token revoked" ) ;
37
35
} catch ( error ) {
38
- core . warning (
39
- `Token revocation failed: ${ error . message } ` )
36
+ core . warning ( `Token revocation failed: ${ error . message } ` ) ;
40
37
}
41
38
}
42
39
Original file line number Diff line number Diff line change @@ -15,16 +15,15 @@ if (!process.env.GITHUB_REPOSITORY_OWNER) {
15
15
}
16
16
17
17
const appId = core . getInput ( "app-id" ) ;
18
- const privateKey = core . getInput ( "private-key" )
18
+ const privateKey = core . getInput ( "private-key" ) ;
19
19
const owner = core . getInput ( "owner" ) ;
20
- const repositories = core . getInput ( "repositories" )
20
+ const repositories = core
21
+ . getInput ( "repositories" )
21
22
. split ( / [ \n , ] + / )
22
- . map ( s => s . trim ( ) )
23
- . filter ( x => x !== '' ) ;
23
+ . map ( ( s ) => s . trim ( ) )
24
+ . filter ( ( x ) => x !== "" ) ;
24
25
25
- const skipTokenRevoke = Boolean (
26
- core . getInput ( "skip-token-revoke" ) || core . getInput ( "skip_token_revoke" )
27
- ) ;
26
+ const skipTokenRevoke = Boolean ( core . getInput ( "skip-token-revoke" ) ) ;
28
27
29
28
main (
30
29
appId ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Generated by [AVA](https://avajs.dev).
12
12
13
13
> stdout
14
14
15
- 'skip_token_revoke — \'skip_token_revoke\' is deprecated and will be removed in a future version. Use \'skip-token-revoke\' instead. '
15
+ ''
16
16
17
17
## main-custom-github-api-url.test.js
18
18
You can’t perform that action at this time.
0 commit comments