ci: fix steps order

This commit is contained in:
Ben Grande 2023-11-06 16:40:48 +00:00
parent 5dca49f90d
commit 2c499d8a95
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -12,15 +12,15 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0
- name: Install dependencies
run: |
apt update -y
apt install -y python3-dev python3-pip gitlint shellcheck reuse
pip3 install salt-lint
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0
- name: Gitlint
# yamllint disable-line rule:line-length
run: gitlint --debug --commits ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}