Skip to content

Commit

Permalink
Improve stylua github workflow (#571)
Browse files Browse the repository at this point in the history
Addressing issue nvim-lua/kickstart.nvim#570

This improves the github workflow to no longer require manual
approval for PRs from first time contributors.

Changes the github event from pull_request to pull_request_target
and adds an explicit PR head checkout
  • Loading branch information
dam9000 authored Jan 3, 2024
1 parent d45e5fe commit c4055a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/stylua.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Check Lua Formatting
name: Check Lua Formatting
on: pull_request
on: pull_request_target

jobs:
stylua-check:
Expand All @@ -9,6 +9,8 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Stylua Check
uses: JohnnyMorganz/stylua-action@v3
with:
Expand Down

0 comments on commit c4055a2

Please sign in to comment.