Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dd64f6e

Browse filesBrowse files
committed
Remove deprecated skip_token_revoke input
1 parent c304ff9 commit dd64f6e
Copy full SHA for dd64f6e

File tree

Expand file treeCollapse file tree

5 files changed

+9
-17
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+9
-17
lines changed

‎action.yml

Copy file name to clipboardExpand all lines: action.yml
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ inputs:
2020
skip-token-revoke:
2121
description: "If truthy, the token will not be revoked when the current job is complete"
2222
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."
2723
# Make GitHub API configurable to support non-GitHub Cloud use cases
2824
# see https://github.com/actions/create-github-app-token/issues/77
2925
github-api-url:

‎lib/post.js

Copy file name to clipboardExpand all lines: lib/post.js
+2-5Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* @param {import("@octokit/request").request} request
66
*/
77
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"));
119

1210
if (skipTokenRevoke) {
1311
core.info("Token revocation was skipped");
@@ -35,8 +33,7 @@ export async function post(core, request) {
3533
});
3634
core.info("Token revoked");
3735
} catch (error) {
38-
core.warning(
39-
`Token revocation failed: ${error.message}`)
36+
core.warning(`Token revocation failed: ${error.message}`);
4037
}
4138
}
4239

‎main.js

Copy file name to clipboardExpand all lines: main.js
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@ if (!process.env.GITHUB_REPOSITORY_OWNER) {
1515
}
1616

1717
const appId = core.getInput("app-id");
18-
const privateKey = core.getInput("private-key")
18+
const privateKey = core.getInput("private-key");
1919
const owner = core.getInput("owner");
20-
const repositories = core.getInput("repositories")
20+
const repositories = core
21+
.getInput("repositories")
2122
.split(/[\n,]+/)
22-
.map(s => s.trim())
23-
.filter(x => x !== '');
23+
.map((s) => s.trim())
24+
.filter((x) => x !== "");
2425

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"));
2827

2928
main(
3029
appId,

‎tests/snapshots/index.js.md

Copy file name to clipboardExpand all lines: tests/snapshots/index.js.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Generated by [AVA](https://avajs.dev).
1212

1313
> stdout
1414
15-
'skip_token_revoke — \'skip_token_revoke\' is deprecated and will be removed in a future version. Use \'skip-token-revoke\' instead.'
15+
''
1616

1717
## main-custom-github-api-url.test.js
1818

‎tests/snapshots/index.js.snap

Copy file name to clipboard
-79 Bytes
Binary file not shown.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.