Skip to content

Commit 30b3de3

Browse files
committed
fix: update imports, export run from main, and update local-action script
1 parent d5f27c5 commit 30b3de3

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

dist/index.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build": "tsup",
2222
"format": "prettier --write .",
2323
"lint": "eslint .",
24-
"local-action": "@github/local-action . src/main.ts .env",
24+
"local-action": "local-action . src/main.ts .env",
2525
"test": "vitest"
2626
},
2727
"prettier": "@AceFire6/prettier-config",

src/file-changes.ts

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 { getExecOutput } from '@actions/exec';
33

44
import type { FilterPattern } from './utils/inputs';

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import core from '@actions/core';
1+
import * as core from '@actions/core';
22

33
import { getFileChangesWithCommand, getFilteredChangeMap, getTemplatedGlobs, parseFileChanges } from './file-changes';
44
import { getInputs } from './utils/inputs';
55

6-
async function run(): Promise<void> {
6+
export async function run(): Promise<void> {
77
try {
88
// Get Inputs
99
const { fileChangeFindCommand, globTemplate, changeMap, filterPatterns } = getInputs();

src/utils/inputs.ts

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 * as z from 'zod';
33

44
type ConfigMap = {

0 commit comments

Comments
 (0)