Skip to content

refactor(server): continuing to fix the broken/old server code #33

refactor(server): continuing to fix the broken/old server code

refactor(server): continuing to fix the broken/old server code #33

Workflow file for this run

name: Stylua Checks
on: push
permissions:
contents: write
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Pesde
uses: lumin-org/setup-pesde@v0.3.2
with:
cache: true
- name: Install Packages
run: pesde install
- name: Run Stylua
run: stylua src
- name: Check for changes
run: git diff --exit-code || echo "Changes detected."
- name: Commit and Push Changes
if: always()
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add src
git commit -m "style(automated): apply Stylua formatting" || echo "No changes to commit."
git push origin HEAD:${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}