Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/symfony-php-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines +166 to +168
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:
Expand Down