Skip to content

mason.nvim moved to mason-org #73

mason.nvim moved to mason-org

mason.nvim moved to mason-org #73

Workflow file for this run

name: Formatting
on:
push:
branches: [ "main" ]
paths-ignore:
- ".github/**"
- "**.md"
- "**.norg"
jobs:
format-with-stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install cargo
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install stylua
run: cargo install stylua --features lua52
- name: Run formatting
run: stylua -v --verify .
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: autoformat with stylua"
branch: ${{ github.ref }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}