diff options
| author | Aiqiao Yan <55104035+aiqiaoy@users.noreply.github.com> | 2026-06-16 17:10:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-16 17:10:58 -0400 |
| commit | c68c2101c254470055e8aa38730553d71a47bc7b (patch) | |
| tree | 3d9a1c982fc2d3aed23e80a58d221942ac249155 /src/main.ts | |
| parent | 6e97fb5586f435ba4f325b363a1c7329470cebf6 (diff) | |
upgrade module to esm and update dependencies (#2463)
* upgrade module to esm so I can update dependencies
* fix ci failures
Diffstat (limited to 'src/main.ts')
| -rw-r--r-- | src/main.ts | 18 |
1 files changed, 9 insertions, 9 deletions
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<void> { try { @@ -11,10 +13,8 @@ async function run(): Promise<void> { 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<void> { 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}`) |
