diff --git a/.github/workflows/lua-format-check-pr.yml b/.github/workflows/lua-format-check-pr.yml index 3d438ece..2694ff3f 100644 --- a/.github/workflows/lua-format-check-pr.yml +++ b/.github/workflows/lua-format-check-pr.yml @@ -1,10 +1,7 @@ name: Check Lint With Stylua -on: - pull_request: - paths: - - "**.lua" +on: [pull_request] jobs: - format_code: + check_format: if: github.repository != github.event.pull_request.base.repo.full_name # if not a local branch runs-on: ubuntu-latest steps: diff --git a/.github/workflows/lua-format-push.yml b/.github/workflows/lua-format-push.yml index 0cc6da54..cb7e7df0 100644 --- a/.github/workflows/lua-format-push.yml +++ b/.github/workflows/lua-format-push.yml @@ -1,11 +1,7 @@ name: Lint With Stylua -on: - push: - paths: - - "**.lua" - workflow_dispatch: +on: [push, workflow_dispatch] jobs: - format_code: + format: runs-on: ubuntu-latest permissions: contents: write