GitHub action that runs pkgcruft over an ebuild repo and supports showing run differences between commits including optional PR comment support.
By default, the current working directory is used for a repo path.
By default, comments are added to pull requests showing the scan difference from the base commit.
Note that for the action's diff support to work, the full history of the target
repo needs to be fetched using the checkout action's fetch-depth: 0
option.
Shallow git repos will only show diff output if the target commit results exist
in the cache.
Also, the action requires using x86-64 Linux runners.
name: pkgcruft
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run pkgcruft
uses: pkgcraft/pkgcruft-action@main