Skip to content

Commit 2a8a6ab

Browse files
Export install function
1 parent 51d0080 commit 2a8a6ab

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

dist/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32655,6 +32655,11 @@ module.exports = parseParams
3265532655
/************************************************************************/
3265632656
var __webpack_exports__ = {};
3265732657

32658+
// EXPORTS
32659+
__nccwpck_require__.d(__webpack_exports__, {
32660+
a: () => (/* binding */ install)
32661+
});
32662+
3265832663
// EXTERNAL MODULE: ./node_modules/@actions/core/lib/core.js
3265932664
var core = __nccwpck_require__(7484);
3266032665
// EXTERNAL MODULE: external "os"
@@ -32895,7 +32900,7 @@ class VersionResolver {
3289532900
/**
3289632901
* Entry point for the GitHub Action.
3289732902
*/
32898-
const run = async () => {
32903+
const install = async () => {
3289932904
try {
3290032905
const versionResolver = new VersionResolver(core.getInput("version"));
3290132906
await versionResolver.resolve();
@@ -32914,5 +32919,7 @@ const run = async () => {
3291432919
}
3291532920
};
3291632921
// eslint-disable-next-line
32917-
run();
32922+
install();
3291832923

32924+
var __webpack_exports__install = __webpack_exports__.a;
32925+
export { __webpack_exports__install as install };

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { VersionResolver } from "./version";
66
/**
77
* Entry point for the GitHub Action.
88
*/
9-
const run = async (): Promise<void> => {
9+
export const install = async (): Promise<void> => {
1010
try {
1111
const versionResolver = new VersionResolver(core.getInput("version"));
1212
await versionResolver.resolve();
@@ -23,4 +23,4 @@ const run = async (): Promise<void> => {
2323
}
2424
};
2525
// eslint-disable-next-line
26-
run();
26+
install();

0 commit comments

Comments
 (0)