Skip to content

ci: run pr checks only on prs #192

ci: run pr checks only on prs

ci: run pr checks only on prs #192

Workflow file for this run

name: Pull request
# This workflow is triggered on pushes to the repository.
on: [ pull_request ]
jobs:
check:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# A PR should not contain too many commits
fetch-depth: 10
- name: Validate commit messages
run: |
git show-ref
curl -sSfL https://github.com/convco/convco/releases/latest/download/convco-ubuntu.zip | zcat > convco
chmod +x convco
./convco check ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
rm convco
check_fmt:
name: Check Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: cargo-fmt
run: cargo fmt --all --check