Skip to content

Commit b8635ad

Browse files
Copilotyanle66
andauthored
Revert protected file change to fix Protected Files CI
Reverts the modification to .github/workflows/src/spec-gen-sdk-status.js which is a protected file under .github/* and should only be updated by the Azure SDK team. Co-authored-by: yanle66 <227239690+yanle66@users.noreply.github.com>
1 parent 3b52371 commit b8635ad

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/src/spec-gen-sdk-status.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ import { extractInputs } from "./context.js";
1010
export default async function setSpecGenSdkStatus({ github, context, core }) {
1111
const inputs = await extractInputs(github, context, core);
1212
const head_sha = inputs.head_sha;
13+
const details_url = inputs.details_url;
1314
const issue_number = inputs.issue_number;
14-
if (!head_sha) {
15-
throw new Error(`Required input is not valid: head_sha:${head_sha}`);
15+
if (!details_url || !head_sha) {
16+
throw new Error(
17+
`Required inputs are not valid: details_url:${details_url}, head_sha:${head_sha}`,
18+
);
1619
}
1720
const owner = inputs.owner;
1821
const repo = inputs.repo;

0 commit comments

Comments
 (0)