We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b1fa7d commit 6defb81Copy full SHA for 6defb81
.github/workflows/quality-assurance.yaml
@@ -20,8 +20,17 @@ jobs:
20
lint:
21
runs-on: ubuntu-latest
22
steps:
23
- - name: Checkout
+ - name: Get number of commits in push
24
+ id: payload
25
+ if: github.event_name == 'push'
26
+ env:
27
+ COMMITS: ${{ toJson(github.event.commits) }}
28
+ run: |
29
+ echo "commit_length=$(echo $COMMITS | jq '. | length')" >> $GITHUB_OUTPUT
30
+ - name: Checking out ${{ steps.payload.outputs.commit_length || '1' }} commits
31
uses: actions/checkout@v4
32
+ with:
33
+ fetch-depth: ${{ steps.payload.outputs.commit_length || '1' }}
34
- name: Setup Ktlint
35
uses: ./.github/actions/setup-ktlint
36
- run: |
0 commit comments