Skip to content

GitHub action to run pkgcruft across an ebuild repo.

Notifications You must be signed in to change notification settings

pkgcraft/pkgcruft-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pkgcruft-action

GitHub action that runs pkgcruft over an ebuild repo and supports showing run differences between commits including optional PR comment support.

Inputs

repo (optional) -- custom target repo path

By default, the current working directory is used for a repo path.

pr-comments (optional) -- true or false

By default, comments are added to pull requests showing the scan difference from the base commit.

Example workflow

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

About

GitHub action to run pkgcruft across an ebuild repo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages