Skip to content

Commit

Permalink
fix: always check formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondill committed Aug 9, 2024
1 parent 648bc4b commit fb08795
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/lua-format-check-pr.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/lua-format-push.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fb08795

Please sign in to comment.