We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c8a6ec commit b4a80dbCopy full SHA for b4a80db
.github/workflows/commit-lint.yml
@@ -9,10 +9,12 @@ jobs:
9
lint-commit-message:
10
runs-on: ubuntu-latest
11
steps:
12
+ - name: Compute number of commits in the PR
13
+ id: nb-of-commits
14
+ run: echo "::set-output name=nb::$((${{ github.event.pull_request.commits }} + 1))"
15
- uses: actions/checkout@v2
16
with:
- # Last 100 commits should be enough for a PR
- fetch-depth: 100
17
+ fetch-depth: ${{ steps.nb-of-commits.outputs.nb }}
18
- name: Install Node.js
19
uses: actions/setup-node@v2
20
0 commit comments