mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2025-12-06 06:36:11 +00:00
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
16 lines
300 B
YAML
16 lines
300 B
YAML
on:
|
|
pull_request_target:
|
|
paths:
|
|
- "**.lua"
|
|
|
|
jobs:
|
|
stylua:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: JohnnyMorganz/stylua-action@v2
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
version: latest
|
|
args: --check .
|