| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,10 +9,12 @@ jobs: | |||
| 9 | 9 | lint-commit-message: | |
| 10 | 10 | runs-on: ubuntu-latest | |
| 11 | 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))" | ||
| 12 | 15 | - uses: actions/checkout@v2 | |
| 13 | 16 | with: | |
| 14 | - # Last 100 commits should be enough for a PR | ||
| 15 | - fetch-depth: 100 | ||
| 17 | + fetch-depth: ${{ steps.nb-of-commits.outputs.nb }} | ||
| 16 | 18 | - name: Install Node.js | |
| 17 | 19 | uses: actions/setup-node@v2 | |
| 18 | 20 | with: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments