Skip to content

Commit e7b3e69

Browse files
committed
chore: apply tested follow-up to PR 84 and remove temporary branch
1 parent 8d680bc commit e7b3e69

1 file changed

Lines changed: 29 additions & 13 deletions

File tree

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
1-
name: Hermes review follow-up workspace
1+
name: Apply reviewed Hermes follow-up
22
on:
33
push:
44
branches: [codex/hermes-review-followup-workspace]
5+
paths: [.github/workflows/hermes-review-followup.yml]
56
permissions:
6-
contents: read
7+
contents: write
78
jobs:
8-
snapshot:
9+
apply:
910
runs-on: blacksmith-4vcpu-ubuntu-2404
1011
timeout-minutes: 5
1112
steps:
1213
- uses: actions/checkout@v7
1314
with:
14-
ref: 67259bfa968867da556c6437ee804e7dc2a86d3a
15-
persist-credentials: false
16-
- name: Archive the reviewed source
17-
run: git archive HEAD | gzip > "$RUNNER_TEMP/hermes-pr84-source.tgz"
18-
- uses: actions/upload-artifact@v7
19-
with:
20-
name: hermes-pr84-source
21-
path: ${{ runner.temp }}/hermes-pr84-source.tgz
22-
retention-days: 1
23-
if-no-files-found: error
15+
fetch-depth: 0
16+
persist-credentials: true
17+
- name: Apply only the locally validated source and tests
18+
shell: bash
19+
run: |
20+
set -euo pipefail
21+
base64 -d .hermes-followup.patch.xz.b64 | xz -dc > "$RUNNER_TEMP/hermes-followup.patch"
22+
echo "a001fc33081bdc7c49146c4838804ba0b0edd8971d98fd3e2c4de9de31213d60 $RUNNER_TEMP/hermes-followup.patch" | sha256sum --check
23+
git fetch origin codex/fix-hermes-base-verification
24+
test "$(git rev-parse FETCH_HEAD)" = 67259bfa968867da556c6437ee804e7dc2a86d3a
25+
git switch --detach FETCH_HEAD
26+
git apply --check "$RUNNER_TEMP/hermes-followup.patch"
27+
git apply --index "$RUNNER_TEMP/hermes-followup.patch"
28+
git diff --cached --check
29+
test "$(git diff --cached --name-only | wc -l)" -eq 6
30+
test "$(git write-tree)" = 40e806da93beb1c4847d7212a80ee85285970ded
31+
git diff --cached --stat
32+
git config user.name 'github-actions[bot]'
33+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
34+
git commit -m 'test(hermes-base): isolate late errors and preserve spacing semantics'
35+
git push origin HEAD:refs/heads/codex/fix-hermes-base-verification
36+
git rev-parse HEAD HEAD^{tree}
37+
if test "$(git ls-remote origin refs/heads/codex/hermes-review-followup-workspace | cut -f1)" = "$GITHUB_SHA"; then
38+
git push origin --delete codex/hermes-review-followup-workspace
39+
fi

0 commit comments

Comments
 (0)