-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathaction.yml
33 lines (32 loc) · 1.12 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: pkgcheck
description: Run pkgcheck over an ebuild repository
inputs:
args:
description: Arguments to pass to pkgcheck
required: false
default: ''
runs:
using: composite
steps:
- name: Cache pkgcheck
uses: actions/cache@v4
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 \"Marking workspace safe for git\" git config --global --add safe.directory '*' ;
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
"