From 64862149cd79d3385ae4b0ed560916e927a8d79d Mon Sep 17 00:00:00 2001 From: dundargoc Date: Tue, 21 Jan 2025 14:49:08 +0100 Subject: [PATCH] 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 def839e9c7..173c0dda9c 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