Skip to content

Commit a86afbe

Browse files
committed
chore: remove temporary Hermes review branches after opening PR 84
1 parent 69f738f commit a86afbe

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Stage reviewed Hermes fix
1+
name: Clean up Hermes review branches
22

33
on:
44
push:
@@ -8,28 +8,20 @@ permissions:
88
contents: write
99

1010
jobs:
11-
stage:
11+
cleanup:
1212
runs-on: blacksmith-4vcpu-ubuntu-2404
1313
timeout-minutes: 5
1414
steps:
1515
- uses: actions/checkout@v7
1616
with:
17-
fetch-depth: 0
1817
persist-credentials: true
19-
- name: Apply the locally tested patch on the audited commit
18+
- name: Delete only the three temporary branches created for PR 84
2019
shell: bash
2120
run: |
2221
set -euo pipefail
23-
cat .hermes-patch/{0,1,2,3}.xzpart | xz -dc > "$RUNNER_TEMP/hermes-base.patch"
24-
echo "49b2915549fefd1dfeb4f5d9fc1274d945d12ebfd37855fe7a6e4442eb291d26 $RUNNER_TEMP/hermes-base.patch" | sha256sum --check
25-
git switch --detach 88b2e66743033c38657b0aa97ab4c3acda6bd3c2
26-
git apply --check --unidiff-zero --exclude=.github/workflows/test.yml "$RUNNER_TEMP/hermes-base.patch"
27-
git apply --index --unidiff-zero --exclude=.github/workflows/test.yml "$RUNNER_TEMP/hermes-base.patch"
28-
git diff --cached --check
29-
git diff --cached --stat
30-
test "$(git diff --cached --name-only | wc -l)" -eq 14
31-
git config user.name 'github-actions[bot]'
32-
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
33-
git commit -m 'fix(hermes-base): preserve semantic operands and bound verifier processes'
34-
git push origin HEAD:refs/heads/codex/hermes-base-staged-20260912
35-
git rev-parse HEAD HEAD^{tree}
22+
remote_sha() { git ls-remote origin "refs/heads/$1" | cut -f1; }
23+
test "$(remote_sha codex/fix-hermes-base-verification)" = 67259bfa968867da556c6437ee804e7dc2a86d3a
24+
test "$(remote_sha codex/hermes-base-workspace-20260912)" = 87a2c6d1ac1d87728e68335502722725de38b108
25+
test "$(remote_sha codex/hermes-base-staged-20260912)" = 090da740e90f6d8127925f0a2f1f0702a064a285
26+
test "$(remote_sha codex/hermes-base-submit-20260912)" = "$GITHUB_SHA"
27+
git push origin --delete codex/hermes-base-workspace-20260912 codex/hermes-base-staged-20260912 codex/hermes-base-submit-20260912

0 commit comments

Comments
 (0)