From 9742171ab92ef350b06431fc6da0b85fe1e3fa9d Mon Sep 17 00:00:00 2001 From: dundargoc Date: Tue, 21 Jan 2025 14:49:08 +0100 Subject: 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. --- .github/workflows/lint.yml | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-70-g09d2