Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing changed without --checked parameter #59

Open
Kaiser-Yang opened this issue Jan 31, 2025 · 0 comments
Open

Nothing changed without --checked parameter #59

Kaiser-Yang opened this issue Jan 31, 2025 · 0 comments

Comments

@Kaiser-Yang
Copy link

Kaiser-Yang commented Jan 31, 2025

When with --checked it will output the diff. But I want to write directly to the files, so I removed the parameter and use git-auto-commit-action to commit the changes, here is my workflow file:

name: formatter

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  stylua:
    name: Format Lua Files
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Stylua
        uses: JohnnyMorganz/stylua-action@v4
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          version: latest
          args: --verify -g '*.lua' -- .

      - uses: stefanzweifel/git-auto-commit-action@v5
        with:
          commit_message: "format: stylua"

But this gives me there is nothing changed.

ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant