Skip to content

Commit bf271d9

Browse files
author
meorphis
committed
Merge remote-tracking branch 'origin/main' into internal
2 parents bb99437 + 1ae0234 commit bf271d9

File tree

7 files changed

+85
-61
lines changed

7 files changed

+85
-61
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [1.13.1](https://github.com/stainless-api/upload-openapi-spec-action/compare/v1.13.0...v1.13.1) (2026-03-16)
4+
5+
6+
### Bug Fixes
7+
8+
* catch guesser errors ([#211](https://github.com/stainless-api/upload-openapi-spec-action/issues/211)) ([85f07c6](https://github.com/stainless-api/upload-openapi-spec-action/commit/85f07c68c3e04d0237647300f884b1b9983aed75))
9+
* slightly different polling termination condition ([#208](https://github.com/stainless-api/upload-openapi-spec-action/issues/208)) ([319cfc9](https://github.com/stainless-api/upload-openapi-spec-action/commit/319cfc9d3522edacb70de93393c572bcdbdf15ac))
10+
311
## [1.13.0](https://github.com/stainless-api/upload-openapi-spec-action/compare/v1.12.0...v1.13.0) (2026-03-05)
412

513

dist/build.js

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

dist/index.js

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

dist/merge.js

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

dist/preview.js

Lines changed: 19 additions & 15 deletions
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
@@ -1,6 +1,6 @@
11
{
22
"name": "upload-openapi-spec-action",
3-
"version": "1.13.0",
3+
"version": "1.13.1",
44
"main": "dist/index.js",
55
"scripts": {
66
"build": "npm run build:build && npm run build:checkout-pr-ref && npm run build:index && npm run build:internal-preview && npm run build:merge && npm run build:preview && npm run build:prepare-combine && npm run build:prepare-swagger",

src/runBuilds.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,20 +122,24 @@ export async function* runBuilds({
122122
logger.debug("Guessing config before branch reset");
123123
// If the `branch` already exists, we should guess against it, in case
124124
// there were changes made via the studio.
125-
if (hasBranch) {
126-
configContent = Object.values(
127-
await stainless.projects.configs.guess({
128-
branch,
129-
spec: oasContent!,
130-
}),
131-
)[0]?.content;
132-
} else {
133-
configContent = Object.values(
134-
await stainless.projects.configs.guess({
135-
branch: branchFrom,
136-
spec: oasContent!,
137-
}),
138-
)[0]?.content;
125+
try {
126+
if (hasBranch) {
127+
configContent = Object.values(
128+
await stainless.projects.configs.guess({
129+
branch,
130+
spec: oasContent!,
131+
}),
132+
)[0]?.content;
133+
} else {
134+
configContent = Object.values(
135+
await stainless.projects.configs.guess({
136+
branch: branchFrom,
137+
spec: oasContent!,
138+
}),
139+
)[0]?.content;
140+
}
141+
} catch (e) {
142+
logger.warn("Error guessing config, continuing anyways", e);
139143
}
140144
} else if (hasBranch && hasBaseBranch) {
141145
logger.debug("Computing config patch before branch reset");

0 commit comments

Comments
 (0)