Skip to content

Commit

Permalink
Add format checker (copied from php-src)
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed May 28, 2024
1 parent 2f760d3 commit 9a97c2f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docs
on:
push:
branches:
- master
paths:
- *.rst
pull_request:
paths:
- *.rst
jobs:
pages:
runs-on: ubuntu-22.04
permissions:
pages: write
id-token: write
if: github.repository == 'php/php-src'
steps:
- name: git checkout
uses: actions/checkout@v4
- name: Install dependencies
run: pip install sphinx-design sphinxawesome-theme rstfmt
- name: Check formatting
run: rstfmt --check -w 80 *.rst

0 comments on commit 9a97c2f

Please sign in to comment.