GitHub Action to run tex-fmt, a LaTeX formatter.
- Create
.github/workflows/ci.yml
- Configure
ci.yml
- Commit and push
ci.yml
The following formats all .tex
, .bib
, .cls
, and .sty
files in branch main
on pushes, then pushes the changes.
.github/workflows/ci.yml
name: CI
on:
push:
branches: main
jobs:
tex-fmt:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@main
with:
ref: ${{ github.head_ref }}
- name: Run tex-fmt
uses: grayespinoza/tex-fmt-action@main
- name: Push
uses: stefanzweifel/git-auto-commit-action@master
with:
commit_message: "style: format using tex-fmt"
Please use GitHub Issues to report bugs, crashes, and other issues.
tex-fmt-action is under the MIT License.