Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit4332f8c

Browse files
committed
Add the @actions/tool-cache package
Signed-off-by: Patricio Pérez <73832292+patricioperezv@users.noreply.github.com>
1 parent60a0d83 commit4332f8c

File tree

7 files changed

+2701
-2
lines changed

7 files changed

+2701
-2
lines changed

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The following arguments will be provided:
1818
-`glob` A reference to the[@actions/glob](https://github.com/actions/toolkit/tree/main/packages/glob) package
1919
-`io` A reference to the[@actions/io](https://github.com/actions/toolkit/tree/main/packages/io) package
2020
-`exec` A reference to the[@actions/exec](https://github.com/actions/toolkit/tree/main/packages/exec) package
21+
-`tc` A reference to the[@actions/tool-cache](https://github.com/actions/toolkit/tree/main/packages/tool-cache) package
2122
-`require` A proxy wrapper around the normal Node.js`require` to enable
2223
requiring relative paths (relative to the current working directory) and
2324
requiring npm packages installed in the current working directory. If for

‎dist/index.js

Lines changed: 2636 additions & 1 deletion
Large diffs are not rendered by default.

‎package-lock.json

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@actions/github":"^6.0.0",
4545
"@actions/glob":"^0.4.0",
4646
"@actions/io":"^1.1.3",
47+
"@actions/tool-cache":"^2.0.1",
4748
"@octokit/core":"^5.0.1",
4849
"@octokit/plugin-request-log":"^4.0.0",
4950
"@octokit/plugin-retry":"^6.0.1",

‎src/async-function.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {Context} from '@actions/github/lib/context'
44
import{GitHub}from'@actions/github/lib/utils'
55
import*asglobfrom'@actions/glob'
66
import*asiofrom'@actions/io'
7+
import*astcfrom'@actions/tool-cache'
78

89
constAsyncFunction=Object.getPrototypeOf(async()=>null).constructor
910

@@ -14,6 +15,7 @@ export declare type AsyncFunctionArguments = {
1415
exec:typeofexec
1516
glob:typeofglob
1617
io:typeofio
18+
tc:typeoftc
1719
require:NodeRequire
1820
__original_require__:NodeRequire
1921
}

‎src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {context, getOctokit} from '@actions/github'
44
import{defaultsasdefaultGitHubOptions}from'@actions/github/lib/utils'
55
import*asglobfrom'@actions/glob'
66
import*asiofrom'@actions/io'
7+
import*astcfrom'@actions/tool-cache'
78
import{requestLog}from'@octokit/plugin-request-log'
89
import{retry}from'@octokit/plugin-retry'
910
import{RequestRequestOptions}from'@octokit/types'
@@ -66,7 +67,8 @@ async function main(): Promise<void> {
6667
core,
6768
exec,
6869
glob,
69-
io
70+
io,
71+
tc
7072
},
7173
script
7274
)

‎types/async-function.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import { Context } from '@actions/github/lib/context';
55
import{GitHub}from'@actions/github/lib/utils';
66
import*asglobfrom'@actions/glob';
77
import*asiofrom'@actions/io';
8+
import*astcfrom'@actions/tool-cache';
89
exportdeclaretypeAsyncFunctionArguments={
910
context:Context;
1011
core:typeofcore;
1112
github:InstanceType<typeofGitHub>;
1213
exec:typeofexec;
1314
glob:typeofglob;
1415
io:typeofio;
16+
tc:typeoftc;
1517
require:NodeRequire;
1618
__original_require__:NodeRequire;
1719
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp