Skip to content

Commit

Permalink
GH Action: Load modules in the ES way to fix the ERR_REQUIRE_ESM error
Browse files Browse the repository at this point in the history
TBH, I have no idea what I am doing
  • Loading branch information
manuroe committed May 22, 2024
1 parent bfcfe32 commit 4194855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/forward-project-field.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { Octokit } = require("@octokit/action");
import { Octokit } from "@octokit/action";

const octokit = new Octokit();

Expand Down
4 changes: 2 additions & 2 deletions .github/actions/score-triaged-defects.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ limitations under the License.


// For running in an action
const { Octokit } = require("@octokit/action");
import { Octokit } from "@octokit/action";
const octokit = new Octokit();

// For running locally
// const { Octokit } = require("@octokit/core");
// import { Octokit } from "@octokit/core";
// const octokit = new Octokit({ auth: process.env.GH_TOKEN });


Expand Down

0 comments on commit 4194855

Please sign in to comment.