Skip to content

Commit

Permalink
ci: use the head ref when checking out
Browse files Browse the repository at this point in the history
Otherwise the action will default to githubs own merge branch which
doesn't follow the actual git history.
  • Loading branch information
dundargoc committed Jan 21, 2025
1 parent 3d4180a commit 6486214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6486214

Please sign in to comment.