Add trusted execution #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conventional commits | |
on: pull_request | |
jobs: | |
check-messages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
architecture: x64 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# we need all the history to be able to resolve revision ranges properly | |
fetch-depth: 0 | |
- name: Install commitizen | |
run: python -m pip install commitizen | |
- name: Run commit message checks | |
run: | | |
cz check --rev-range 630c2f514fd8d42c4def3d7ee588487ffa64cc38..${{ github.event.pull_request.head.sha }} |