File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 workflow_dispatch :
66
77permissions :
8- contents : write
8+ contents : read
99
1010concurrency :
1111 group : build-${{ github.ref }}
1818 steps :
1919 - name : Checkout
2020 uses : actions/checkout@v4
21- with :
22- ref : ${{ github.head_ref }}
23- fetch-depth : 0
2421
2522 - name : Setup Node.js
2623 uses : actions/setup-node@v4
3128 - name : Install dependencies
3229 run : npm ci
3330
34- - name : Apply CSS Core expansion
35- run : |
36- python3 <<'PY'
37- from pathlib import Path
38-
39- path = Path('src/pages/css/index.md')
40- text = path.read_text()
41- replacement = Path('.tmp-css-core-section.md').read_text().rstrip()
42- start = text.index('### CSS Core')
43- end = text.index('### CSS Layout')
44- path.write_text(text[:start] + replacement + '\n\n' + text[end:])
45- PY
46- npx prettier src/pages/css/index.md --write
47- rm .tmp-css-core-section.md
48- git checkout origin/main -- .github/workflows/build.yml
49- git config user.name "github-actions[bot]"
50- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
51- git add src/pages/css/index.md .tmp-css-core-section.md .github/workflows/build.yml
52- git commit -m "docs: expand CSS Core answers"
53- git push origin HEAD:${{ github.head_ref }}
54-
5531 - name : Check formatting
5632 run : npm run format:check
5733
You can’t perform that action at this time.
0 commit comments