From c68c2101c254470055e8aa38730553d71a47bc7b Mon Sep 17 00:00:00 2001 From: Aiqiao Yan <55104035+aiqiaoy@users.noreply.github.com> Date: Tue, 16 Jun 2026 17:10:58 -0400 Subject: upgrade module to esm and update dependencies (#2463) * upgrade module to esm so I can update dependencies * fix ci failures --- src/main.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/main.ts') diff --git a/src/main.ts b/src/main.ts index 0684c6f..f5f5f68 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,9 +1,11 @@ import * as core from '@actions/core' -import * as coreCommand from '@actions/core/lib/command' -import * as gitSourceProvider from './git-source-provider' -import * as inputHelper from './input-helper' +import * as gitSourceProvider from './git-source-provider.js' +import * as inputHelper from './input-helper.js' import * as path from 'path' -import * as stateHelper from './state-helper' +import * as stateHelper from './state-helper.js' +import {fileURLToPath} from 'url' + +const __dirname = path.dirname(fileURLToPath(import.meta.url)) async function run(): Promise { try { @@ -11,10 +13,8 @@ async function run(): Promise { try { // Register problem matcher - coreCommand.issueCommand( - 'add-matcher', - {}, - path.join(__dirname, 'problem-matcher.json') + core.info( + `::add-matcher::${path.join(__dirname, 'problem-matcher.json')}` ) // Get sources @@ -22,7 +22,7 @@ async function run(): Promise { core.setOutput('ref', sourceSettings.ref) } finally { // Unregister problem matcher - coreCommand.issueCommand('remove-matcher', {owner: 'checkout-git'}, '') + core.info('::remove-matcher owner=checkout-git::') } } catch (error) { core.setFailed(`${(error as any)?.message ?? error}`) -- cgit v1.2.3