Skip to content

Commit 9befc81

Browse files
committed
Update commit length calculation in quality-assurance.yaml
Signed-off-by: James Bradlee <[email protected]>
1 parent 01180f4 commit 9befc81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/quality-assurance.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
env:
2727
COMMITS: ${{ toJson(github.event.commits) }}
2828
run: |
29-
echo "commit_length=$(echo $COMMITS | jq '. | length')" >> $GITHUB_OUTPUT
29+
let NCOMMITS=1+$(echo $COMMITS | jq '. | length')
30+
echo "commit_length=NCOMMITS" >> $GITHUB_OUTPUT
3031
- name: Checking out ${{ steps.payload.outputs.commit_length || '1' }} commits
3132
uses: actions/checkout@v4
3233
with:

0 commit comments

Comments
 (0)