Skip to content

Commit cc1fd15

Browse files
committed
chore: clean temporary Hermes blocker transfer branches
1 parent 985e8b3 commit cc1fd15

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
1-
name: Stage tested Hermes blocker fixes
1+
name: Clean Hermes blocker workspace
22
on:
33
push:
44
branches: [codex/hermes-blockers-workspace]
55
permissions:
66
contents: write
77
jobs:
8-
stage:
8+
cleanup:
99
runs-on: blacksmith-4vcpu-ubuntu-2404
1010
timeout-minutes: 5
1111
steps:
1212
- uses: actions/checkout@v7
1313
with:
1414
fetch-depth: 0
1515
persist-credentials: true
16-
- name: Apply hash-checked patch to the reviewed PR head
16+
- name: Remove only temporary transfer branches after verifying the PR commit
1717
shell: bash
1818
run: |
1919
set -euo pipefail
20-
base64 -d .hermes-blockers.patch.xz.b64 | xz -dc > "$RUNNER_TEMP/blockers.patch"
21-
echo "2deb181fe20425b6a92969cdda58b838f21b288e2f4ae9e9517e68ad5aeb0860 $RUNNER_TEMP/blockers.patch" | sha256sum --check
22-
git switch --detach 5e1943d7e4c44d1d76fb032ddc5b2ddb951c965b
23-
git apply --check --exclude=.github/workflows/test.yml "$RUNNER_TEMP/blockers.patch"
24-
git apply --index --exclude=.github/workflows/test.yml "$RUNNER_TEMP/blockers.patch"
25-
git diff --cached --check
26-
test "$(git diff --cached --name-only | wc -l)" -eq 7
27-
test "$(git write-tree)" = 99d8588d27b297017713671515c7a30bcf8ae983
28-
git config user.name 'github-actions[bot]'
29-
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
30-
git commit -m 'fix(hermes-base): accept empty functions and close failed debug dumps'
31-
git push origin HEAD:refs/heads/codex/hermes-blockers-staged
32-
git rev-parse HEAD HEAD^{tree}
20+
git fetch origin codex/fix-hermes-base-verification
21+
git merge-base --is-ancestor fa8dcf22d64f76f0ab8878081f9a6aef33961386 FETCH_HEAD
22+
test "$(git rev-parse fa8dcf22d64f76f0ab8878081f9a6aef33961386^{tree})" = c76771dd90a95bf1da90c66116ef388d341f5d3d
23+
git push origin --delete codex/hermes-blockers-staged codex/hermes-blockers-workspace

0 commit comments

Comments
 (0)