Skip to content

Commit

Permalink
add safe directory to git target
Browse files Browse the repository at this point in the history
pkgcheck uses git for some of it's checks, however, the github.workspace
directory not being marked safe causes a failure
See also: actions/checkout#1169
See also: https://github.com/pentoo/pentoo-overlay/actions/runs/7560749313/job/20587445443
Closes: #18
Signed-off-by: Zero_Chaos <[email protected]>
Closes: #19
Signed-off-by: Arthur Zamarin <[email protected]>
  • Loading branch information
ZeroChaos- authored and arthurzam committed Jan 17, 2024
1 parent 2bf6ea9 commit aa3ef67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ runs:
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 ${{ github.workspace }} ;
runner \"Run pkgcheck\" pkgcheck --color y ci --failures ~/failures.json --exit GentooCI ${{ inputs.args }} ;
scan_exit_status=$? ;
pkgcheck replay --color y ~/failures.json ;
Expand Down

0 comments on commit aa3ef67

Please sign in to comment.