Skip to content

Commit b1f2347

Browse files
committed
Improve gh_pages.
1 parent f232a7f commit b1f2347

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: .github/workflows/gh_pages.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,21 @@ jobs:
2525
cd source
2626
npm ci
2727
jsdoc -c jsdoc.json -d ../out
28-
cd ../out
28+
- name: Run prettier
29+
run: |
30+
cd out
2931
sed -i -e 's:^[[:space:]]*<!--[[:space:]]*$::g' -e 's:^[[:space:]]*-->[[:space:]]*$::g' global.html
3032
prettier . --write
33+
- name: Create commit
34+
if: always()
35+
run: |
36+
cd out
3137
git add .
3238
git config --local user.email ""
3339
git config --local user.name "Github Actions"
3440
git commit -a -m "Update api for ${{github.event.release.name}}" || true
3541
- name: Create Pull Request
42+
if: always()
3643
id: cpr
3744
uses: peter-evans/create-pull-request@v2
3845
with:

0 commit comments

Comments
 (0)