Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,18 @@ jobs:
exit 0
fi

pr_number="$(jq -er '.number' <<<"${RELEASE_PR}")"
branch="$(jq -er '.head_branch' <<<"${RELEASE_PR}")"
pr_count="$(jq -er '.prs | length' <<<"${RELEASE_PR}")"
if [ "${pr_count}" -eq 0 ]; then
echo "No Rust release changes to prepare"
exit 0
fi
if [ "${pr_count}" -ne 1 ]; then
echo "::error::Expected one version-grouped Release PR, got ${pr_count}"
exit 2
fi

pr_number="$(jq -er '.prs[0].number' <<<"${RELEASE_PR}")"
branch="$(jq -er '.prs[0].head_branch' <<<"${RELEASE_PR}")"
gh pr checkout "${pr_number}" --force

python3 tools/sync_release_docs.py
Expand Down
4 changes: 4 additions & 0 deletions tools/check_ci_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ def main() -> int:
"--manifest-path rust/Cargo.toml",
"release-plz-v0.3.160",
"2263c4f95eac1513da96a114a77fde20ea038742a8c8050f7514b8f93b828646",
"pr_count=\"$(jq -er '.prs | length'",
"pr_number=\"$(jq -er '.prs[0].number'",
"branch=\"$(jq -er '.prs[0].head_branch'",
"Expected one version-grouped Release PR",
"python3 tools/sync_release_docs.py",
"gh workflow run ci.yml",
"gh workflow run docs.yml",
Expand Down
Loading