Skip to content

Commit

Permalink
use dockerfile action
Browse files Browse the repository at this point in the history
Resolves: #15
Resolves: #9
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
  • Loading branch information
arthurzam committed Jan 13, 2024
1 parent 18799ee commit 0ad117d
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 67,754 deletions.
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

26 changes: 24 additions & 2 deletions action.yml
Expand Up @@ -10,5 +10,27 @@ inputs:
required: false
default: pkgcheck>=0.10.3
runs:
using: node16
main: dist/index.js
using: composite
steps:
- name: Cache pkgcheck
uses: actions/cache@v3
with:
path: |
~/.cache/pkgcore
~/.cache/pkgcheck
key: pkgcheck

- name: Run pkgcheck
uses: docker://ghcr.io/pkgcore/pkgcheck:latest
with:
entrypoint: /usr/bin/bash
args: >
-c "
runner() { echo \"::group::${1}\"; shift 1; \"$@\"; local exit=$?; echo; echo \"::endgroup::\"; return $exit; } ;
runner \"Sync gentoo repo\" pmaint sync gentoo || exit 1 ;
runner \"Update repo metadata\" pmaint regen --dir ~/.cache/pkgcheck/repos . ;
runner \"Run pkgcheck\" pkgcheck --color y ci --failures ~/failures.json --exit GentooCI ${{ inputs.args }} ;
scan_exit_status=$? ;
pkgcheck replay --color y ~/failures.json ;
exit $scan_exit_status
"

0 comments on commit 0ad117d

Please sign in to comment.