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:
dundargoc 2023-02-11 13:22:54 +01:00 committed by GitHub
parent 374955bcc5
commit b0d156c00b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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})"