π OpenHands: AI-Driven Development
ci: reject temporary artifacts in release PRs (#18497)
Engel Nyst8238b7af825b
diff --git a/.agents/skills/release.md b/.agents/skills/release.mdindex a5f000a727..a995db2c63 100644--- a/.agents/skills/release.md+++ b/.agents/skills/release.md@@ -50,6 +50,7 @@ Open the release PR and confirm:- **The version** in the title matches expectations. It is computed from the merged commit types β if it looks wrong, check the conventional types of the PR titles merged since the last release. To force a specific version, merge a commit to `main` whose message contains a `Release-As: X.Y.Z` footer.- **The staged bumps** cover all version surfaces (`package.json`, `package-lock.json`, `config/defaults.json`, `README.md`, `README.windows.md`) and the notes list the expected changes.+- **Temporary artifacts are absent.** Release PRs fail the required Ubuntu CI check while their committed tree contains `.pr/`. Merge the artifact-cleanup PR and let release-please update the release PR before merging it.---diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 68d380bed5..4aba6439a3 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -49,6 +49,20 @@ jobs:- name: Check out repositoryuses: actions/checkout@v7+ - name: Reject temporary artifacts in release PRs+ if: >-+ matrix.full_checks &&+ github.event_name == 'pull_request' &&+ startsWith(github.head_ref, 'release-please--')+ run: |+ set -euo pipefail+ artifacts="$(git ls-tree -r --name-only HEAD -- .pr)"+ if [ -n "$artifacts" ]; then+ echo "::error::Release PR contains temporary .pr artifacts. Merge the cleanup PR and let release-please update this PR before merging."+ printf '%s\n' "$artifacts"+ exit 1+ fi+- name: Set up Node.js with npm cacheuses: actions/setup-node@v7with: