ci: fetch only the number of commits needed for checks #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | ||
|
Check failure on line 1 in .github/workflows/semantic-git-message.yml
|
||
| workflow_call: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| validate-semantic-commits: | ||
| name: Validate semantic commits | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| fetch-depth: ${{ github.event.pull_request.commits + 1 }} | ||
| - name: Validate commit messages | ||
| uses: webiny/action-conventional-commits@7f91b1595ca1951cdb671ddc9f07a49081ec5b69 # v1.4.2 | ||