Add back cwd input (#718)

This commit is contained in:
Bjorn Lu
2026-08-12 13:10:39 +00:00
committed by GitHub
parent 6f58ba3580
commit 3b7c71c440
16 changed files with 41 additions and 15 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ import {
} from "./utils.ts";
(async () => {
// If the user needs to change the cwd, set `working-directory` in the step instead
const cwd = process.cwd();
const cwd = getOptionalInput("cwd") || process.cwd();
await validateChangesetsCliVersion(cwd);
throwOnRenamedInputs({
+1 -2
View File
@@ -17,8 +17,7 @@ try {
}
async function main() {
// If the user needs to change the cwd, set `working-directory` in the step instead
const cwd = process.cwd();
const cwd = getOptionalInput("cwd") || process.cwd();
await validateChangesetsCliVersion(cwd);
const publishPlanArtifactId = getOptionalInput("publish-plan-artifact-id");
+1 -2
View File
@@ -17,8 +17,7 @@ try {
}
async function main() {
// If the user needs to change the cwd, set `working-directory` in the step instead
const cwd = process.cwd();
const cwd = getOptionalInput("cwd") || process.cwd();
await validateChangesetsCliVersion(cwd);
const githubToken = getRequiredInput("github-token");
+6 -2
View File
@@ -4,7 +4,11 @@ import path from "node:path";
import artifact from "@actions/artifact";
import * as core from "@actions/core";
import readChangesetState from "../readChangesetState.ts";
import { execChangesetsCli, validateChangesetsCliVersion } from "../utils.ts";
import {
execChangesetsCli,
getOptionalInput,
validateChangesetsCliVersion,
} from "../utils.ts";
type ModeResult =
| {
@@ -27,7 +31,7 @@ try {
}
async function main() {
const cwd = process.cwd();
const cwd = getOptionalInput("cwd") || process.cwd();
await validateChangesetsCliVersion(cwd);
const result = await getMode(cwd);
+1 -2
View File
@@ -15,8 +15,7 @@ try {
}
async function main() {
// If the user needs to change the cwd, set `working-directory` in the step instead
const cwd = process.cwd();
const cwd = getOptionalInput("cwd") || process.cwd();
await validateChangesetsCliVersion(cwd);
throwOnRemovedCommitModeInput();