|
1 | | -name: Stage tested Hermes blocker fixes |
| 1 | +name: Clean Hermes blocker workspace |
2 | 2 | on: |
3 | 3 | push: |
4 | 4 | branches: [codex/hermes-blockers-workspace] |
5 | 5 | permissions: |
6 | 6 | contents: write |
7 | 7 | jobs: |
8 | | - stage: |
| 8 | + cleanup: |
9 | 9 | runs-on: blacksmith-4vcpu-ubuntu-2404 |
10 | 10 | timeout-minutes: 5 |
11 | 11 | steps: |
12 | 12 | - uses: actions/checkout@v7 |
13 | 13 | with: |
14 | 14 | fetch-depth: 0 |
15 | 15 | 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 |
17 | 17 | shell: bash |
18 | 18 | run: | |
19 | 19 | 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