Skip to content

Commit 024dbd0

Browse files
parkerbxyzCopilot
andcommitted
fix: use namespace import for @actions/core v3
@actions/core v3.0.0 is a pure ESM package with only named exports. Change `import core from` to `import * as core from` in all source files and rebuild dist. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 06ba1b2 commit 024dbd0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import core from "@actions/core";
1+
import * as core from "@actions/core";
22
import { request } from "@octokit/request";
33
import { ProxyAgent, fetch as undiciFetch } from "undici";
44

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @ts-check
22

3-
import core from "@actions/core";
3+
import * as core from "@actions/core";
44
import { createAppAuth } from "@octokit/auth-app";
55

66
import { getPermissionsFromInputs } from "./lib/get-permissions-from-inputs.js";

post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @ts-check
22

3-
import core from "@actions/core";
3+
import * as core from "@actions/core";
44

55
import { post } from "./lib/post.js";
66
import request from "./lib/request.js";

0 commit comments

Comments
 (0)