|
1 | | -name: Hermes review follow-up workspace |
| 1 | +name: Apply reviewed Hermes follow-up |
2 | 2 | on: |
3 | 3 | push: |
4 | 4 | branches: [codex/hermes-review-followup-workspace] |
| 5 | + paths: [.github/workflows/hermes-review-followup.yml] |
5 | 6 | permissions: |
6 | | - contents: read |
| 7 | + contents: write |
7 | 8 | jobs: |
8 | | - snapshot: |
| 9 | + apply: |
9 | 10 | runs-on: blacksmith-4vcpu-ubuntu-2404 |
10 | 11 | timeout-minutes: 5 |
11 | 12 | steps: |
12 | 13 | - uses: actions/checkout@v7 |
13 | 14 | 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