Skip to content

Commit 0ad117d

Browse files
committed
use dockerfile action
Resolves: #15 Resolves: #9 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 18799ee commit 0ad117d

6 files changed

Lines changed: 24 additions & 67754 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

action.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,27 @@ inputs:
1010
required: false
1111
default: pkgcheck>=0.10.3
1212
runs:
13-
using: node16
14-
main: dist/index.js
13+
using: composite
14+
steps:
15+
- name: Cache pkgcheck
16+
uses: actions/cache@v3
17+
with:
18+
path: |
19+
~/.cache/pkgcore
20+
~/.cache/pkgcheck
21+
key: pkgcheck
22+
23+
- name: Run pkgcheck
24+
uses: docker://ghcr.io/pkgcore/pkgcheck:latest
25+
with:
26+
entrypoint: /usr/bin/bash
27+
args: >
28+
-c "
29+
runner() { echo \"::group::${1}\"; shift 1; \"$@\"; local exit=$?; echo; echo \"::endgroup::\"; return $exit; } ;
30+
runner \"Sync gentoo repo\" pmaint sync gentoo || exit 1 ;
31+
runner \"Update repo metadata\" pmaint regen --dir ~/.cache/pkgcheck/repos . ;
32+
runner \"Run pkgcheck\" pkgcheck --color y ci --failures ~/failures.json --exit GentooCI ${{ inputs.args }} ;
33+
scan_exit_status=$? ;
34+
pkgcheck replay --color y ~/failures.json ;
35+
exit $scan_exit_status
36+
"

0 commit comments

Comments
 (0)