Skip to content

Commit

Permalink
Merge pull request #6 from Midnightific/dev
Browse files Browse the repository at this point in the history
Add auto style code
  • Loading branch information
Midnightific authored Aug 10, 2024
2 parents 230ddcb + 256f968 commit f09f828
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,32 @@ jobs:
style:
name: Styling
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Check code style
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ github.token }}
version: latest
args: --check src
continue-on-error: true

- name: Fix code style issues
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ github.token }}
version: latest
args: src

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[auto]: fix code style issues"
branch: ${{ github.head_ref }}

0 comments on commit f09f828

Please sign in to comment.