on:
name: cargo-rdme
env:
CARGO_TERM_COLOR: always
jobs:
cargo-rdme:
# Only run on PRs if the source branch is on someone else's repo
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@v2
with:
tool: cargo-rdme
- name: Check if the README is up to date.
run: |
cargo rdme --check