ci: tighten release publish timeouts

This commit is contained in:
Peter Steinberger
2026-05-10 15:19:39 +01:00
parent b86d5a1056
commit ac15c919c4
6 changed files with 31 additions and 6 deletions

View File

@@ -618,7 +618,7 @@ jobs:
timeout_minutes: 120
- chunk_id: package-update-openai
label: package/update OpenAI install
timeout_minutes: 35
timeout_minutes: 20
- chunk_id: package-update-anthropic
label: package/update Anthropic install
timeout_minutes: 180

View File

@@ -158,7 +158,7 @@ jobs:
name: Publish plugins, then OpenClaw
needs: [resolve_release_target]
runs-on: ubuntu-latest
timeout-minutes: 360
timeout-minutes: 90
steps:
- name: Dispatch publish workflows
env:
@@ -274,15 +274,22 @@ jobs:
changelog_file="${RUNNER_TEMP}/CHANGELOG.md"
notes_file="${RUNNER_TEMP}/release-notes.md"
gh api --repo "$GITHUB_REPOSITORY" "repos/${GITHUB_REPOSITORY}/contents/CHANGELOG.md?ref=${TARGET_SHA}" \
gh api "repos/${GITHUB_REPOSITORY}/contents/CHANGELOG.md?ref=${TARGET_SHA}" \
--jq '.content' | base64 --decode > "${changelog_file}"
awk -v version="${notes_version}" '
$0 == "## " version { in_section = 1; next }
/^## / && in_section { exit }
in_section { print }
' "${changelog_file}" > "${notes_file}"
if [[ ! -s "${notes_file}" ]] && [[ "${RELEASE_TAG}" == *"-alpha."* || "${RELEASE_TAG}" == *"-beta."* ]]; then
awk '
$0 == "## Unreleased" { in_section = 1; next }
/^## / && in_section { exit }
in_section { print }
' "${changelog_file}" > "${notes_file}"
fi
if [[ ! -s "${notes_file}" ]]; then
echo "CHANGELOG.md does not contain release notes for ${notes_version}." >&2
echo "CHANGELOG.md does not contain release notes for ${notes_version} or an Unreleased prerelease fallback." >&2
exit 1
fi