Skip to content

Commit

Permalink
Lint Action Update
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteOne committed Apr 26, 2024
1 parent 4a9a91e commit 1f64f3e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,23 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.

# Optional step to run on only changed files
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
#since_last_remote_commit: true
files: |
**.lua
- name: List changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
- name: Lua Check
if: steps.changed-files.outputs.any_changed == 'true'
uses: Kong/public-shared-actions/code-check-actions/lua-lint@main
Expand Down

0 comments on commit 1f64f3e

Please sign in to comment.