From fb08795c6949dd6c4dc535a241379b8883fca82e Mon Sep 17 00:00:00 2001 From: Aaron Dill Date: Fri, 9 Aug 2024 01:27:41 -0500 Subject: [PATCH] fix: always check formatting --- .github/workflows/lua-format-check-pr.yml | 7 ++----- .github/workflows/lua-format-push.yml | 8 ++------ 2 files changed, 4 insertions(+), 11 deletions(-) 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