Skip to content

Commit 7960cc2

Browse files
committed
fix: .github/actions.json -> .github/workflows/action.json
1 parent edd0917 commit 7960cc2

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

lib/cli/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function install(actions: string[]) {
3737
import * as path from "node:path";
3838
3939
function action(name, params) {
40-
const githubDir = path.resolve(process.cwd(), ".github");
40+
const githubDir = path.resolve(process.cwd(), ".github/workflows");
4141
const actionsJsonPath = path.resolve(githubDir, "actions.json");
4242
const actionsLockJsonPath = path.resolve(githubDir, "actions-lock.json");
4343
const actionsJson = JSON.parse(fs.readFileSync(actionsJsonPath, "utf8"));

lib/util/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ function _prepareGitHubDir() {
99
}
1010

1111
function _actionsJsonPath() {
12-
return path.resolve(process.cwd(), ".github/actions.json");
12+
return path.resolve(process.cwd(), ".github/workflows/actions.json");
1313
}
1414

1515
function _actionsLockJsonPath() {
16-
return path.resolve(process.cwd(), ".github/actions-lock.json");
16+
return path.resolve(process.cwd(), ".github/workflows/actions-lock.json");
1717
}
1818

1919
export type ActionsJson = Record<string, string>;

0 commit comments

Comments
 (0)