Skip to content

Commit 28e4453

Browse files
committed
fix: output dir path
1 parent 1636c45 commit 28e4453

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/icons.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
env:
10-
OUTPUT_ROOT_DIR: packages/icon-files/
10+
OUTPUT_ROOT_DIR: ../icon-files/
1111
TARGET_BRANCH: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || 'main' }}
1212

1313
jobs:

packages/icons-cli/src/getChangedFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function* getChangedFiles(dir: string) {
1010
throw new Error(`icons-cli: target directory not found (${dir})`)
1111
const gitStatus = await collectGitStatus()
1212
for (const [relativePath, status] of gitStatus) {
13-
const fullpath = path.resolve(process.cwd(), relativePath)
13+
const fullpath = path.resolve(process.cwd(), '../../', relativePath)
1414
if (!fullpath.startsWith(`${dir}/`)) {
1515
continue
1616
}

0 commit comments

Comments
 (0)