diff --git a/.github/workflows/symfony-php-reusable.yml b/.github/workflows/symfony-php-reusable.yml index b7858c8..4633638 100644 --- a/.github/workflows/symfony-php-reusable.yml +++ b/.github/workflows/symfony-php-reusable.yml @@ -163,18 +163,18 @@ jobs: if: github.event_name == 'push' run: | if [ -n "${{ inputs.commitlint-config }}" ]; then - npx commitlint --from HEAD~1 --to HEAD --verbose --config ${{ inputs.commitlint-config }} + npx @commitlint/cli@21.2.1 --from HEAD~1 --to HEAD --verbose --config ${{ inputs.commitlint-config }} else - npx commitlint --from HEAD~1 --to HEAD --verbose + npx @commitlint/cli@21.2.1 --from HEAD~1 --to HEAD --verbose fi - name: Validate PR commits if: github.event_name == 'pull_request' run: | if [ -n "${{ inputs.commitlint-config }}" ]; then - npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose --config ${{ inputs.commitlint-config }} + npx @commitlint/cli@21.2.1 --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose --config ${{ inputs.commitlint-config }} else - npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose + npx @commitlint/cli@21.2.1 --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose fi composer-validate: