mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2026-06-03 19:02:02 +00:00
ci: fix stylua workflow (#22)
Workflow was broken for everybody except me since pull_request trigger only works properly if every contributor has write access to the repo. With fork based workflow prevalent in Github the trigger to use is pull_request_target where the config and access token comes from main branch instead of the PR itself. Other notable changes: - Only run checks if lua files change - Run even if PR targets some branch other than main
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request_target:
|
||||||
branches:
|
paths:
|
||||||
- main
|
- "**.lua"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stylua:
|
stylua:
|
||||||
|
|||||||
Reference in New Issue
Block a user