aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2025-01-21 14:49:08 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2025-01-21 15:38:55 +0100
commit9742171ab92ef350b06431fc6da0b85fe1e3fa9d (patch)
tree77b9f37adda8913f789da06dad330859e9753032 /.github
parentbuild: add -q flag to luacheck (diff)
downloadnvim-lspconfig-9742171ab92ef350b06431fc6da0b85fe1e3fa9d.tar
nvim-lspconfig-9742171ab92ef350b06431fc6da0b85fe1e3fa9d.tar.gz
nvim-lspconfig-9742171ab92ef350b06431fc6da0b85fe1e3fa9d.tar.bz2
nvim-lspconfig-9742171ab92ef350b06431fc6da0b85fe1e3fa9d.tar.lz
nvim-lspconfig-9742171ab92ef350b06431fc6da0b85fe1e3fa9d.tar.xz
nvim-lspconfig-9742171ab92ef350b06431fc6da0b85fe1e3fa9d.tar.zst
nvim-lspconfig-9742171ab92ef350b06431fc6da0b85fe1e3fa9d.zip
ci: use the head ref when checking out
Otherwise the action will default to githubs own merge branch which doesn't follow the actual git history.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index def839e9..173c0dda 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -58,6 +58,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
+ ref: ${{ github.event.pull_request.head.sha }}
- run: npm install --save-dev @commitlint/{cli,config-conventional}
- run: |
echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js