Skip to content

Commit 7db756f

Browse files
ci: validate and apply provider normalization fix
1 parent 24c371f commit 7db756f

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Apply provider normalization fix
2+
3+
on:
4+
push:
5+
branches: ['agent/phase2-validated-output']
6+
paths: ['.github/workflows/provider-fix-bootstrap.yml']
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
apply-and-validate:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
ref: agent/phase2-validated-output
18+
fetch-depth: 0
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 24
22+
cache: npm
23+
cache-dependency-path: global-template/docgen/package.json
24+
- name: Apply validated patch
25+
shell: bash
26+
run: |
27+
set -euo pipefail
28+
cat .github/provider-fix-parts/part-* | tr -d '\n' | base64 -d | gzip -d > /tmp/provider-fix.patch
29+
git apply --check /tmp/provider-fix.patch
30+
git apply /tmp/provider-fix.patch
31+
git diff --check
32+
- name: Validate implementation
33+
shell: bash
34+
run: |
35+
set -euo pipefail
36+
cd global-template/docgen
37+
npm run check
38+
DOCGEN_PROGRESS=0 npm test
39+
cd ../..
40+
node install.mjs --dry-run --no-link-cli
41+
- name: Commit validated source
42+
shell: bash
43+
run: |
44+
set -euo pipefail
45+
git config user.name "github-actions[bot]"
46+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
47+
git add global-template/docgen
48+
git commit -m "fix: normalize provider artifacts and repair incomplete model bundles"
49+
git push origin HEAD:agent/phase2-validated-output

0 commit comments

Comments
 (0)