mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ci: run lintcommit file from PR branch (#22219)
As the trigger type is no longer pull_request_target there is no longer any risk of using the lintcommit script directly from the user PR.
This commit is contained in:
parent
374955bcc5
commit
b0d156c00b
4
.github/workflows/lintcommit.yml
vendored
4
.github/workflows/lintcommit.yml
vendored
@ -15,9 +15,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
path: pr_nvim
|
||||
- uses: rhysd/action-setup-vim@v1
|
||||
with:
|
||||
neovim: true
|
||||
- run: wget https://raw.githubusercontent.com/neovim/neovim/master/scripts/lintcommit.lua
|
||||
- run: nvim --clean -es +"cd pr_nvim" +"lua dofile('../lintcommit.lua').main({trace=false})"
|
||||
- run: nvim --clean -es +"lua require('scripts.lintcommit').main({trace=false})"
|
||||
|
Loading…
Reference in New Issue
Block a user