chore: stage tested Hermes blocker patch with tree verification #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Stage tested Hermes blocker fixes | |
| on: | |
| push: | |
| branches: [codex/hermes-blockers-workspace] | |
| permissions: | |
| contents: write | |
| jobs: | |
| stage: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: true | |
| - name: Apply hash-checked patch to the reviewed PR head | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| base64 -d .hermes-blockers.patch.xz.b64 | xz -dc > "$RUNNER_TEMP/blockers.patch" | |
| echo "2deb181fe20425b6a92969cdda58b838f21b288e2f4ae9e9517e68ad5aeb0860 $RUNNER_TEMP/blockers.patch" | sha256sum --check | |
| git switch --detach 5e1943d7e4c44d1d76fb032ddc5b2ddb951c965b | |
| git apply --check --exclude=.github/workflows/test.yml "$RUNNER_TEMP/blockers.patch" | |
| git apply --index --exclude=.github/workflows/test.yml "$RUNNER_TEMP/blockers.patch" | |
| git diff --cached --check | |
| test "$(git diff --cached --name-only | wc -l)" -eq 7 | |
| test "$(git write-tree)" = 99d8588d27b297017713671515c7a30bcf8ae983 | |
| git config user.name 'github-actions[bot]' | |
| git config user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
| git commit -m 'fix(hermes-base): accept empty functions and close failed debug dumps' | |
| git push origin HEAD:refs/heads/codex/hermes-blockers-staged | |
| git rev-parse HEAD HEAD^{tree} |