.github/workflows/cycles.yml: fix git command detection
This commit is contained in:
parent
14d0b54a06
commit
cd824936ce
8
.github/workflows/cycles.yml
vendored
8
.github/workflows/cycles.yml
vendored
@ -28,7 +28,13 @@ jobs:
|
|||||||
common/travis/prepare.sh
|
common/travis/prepare.sh
|
||||||
- name: Find cycles and open issues
|
- name: Find cycles and open issues
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory "$PWD"
|
if command -v chroot-git >/dev/null 2>&1; then
|
||||||
|
GIT_CMD=$(command -v chroot-git)
|
||||||
|
elif command -v git >/dev/null 2>&1; then
|
||||||
|
GIT_CMD=$(command -v git)
|
||||||
|
fi
|
||||||
|
# required by git 2.35.2+
|
||||||
|
$GIT_CMD config --global --add safe.directory "$PWD"
|
||||||
common/scripts/xbps-cycles.py | tee cycles
|
common/scripts/xbps-cycles.py | tee cycles
|
||||||
grep 'Cycle:' cycles | while read -r line; do
|
grep 'Cycle:' cycles | while read -r line; do
|
||||||
if gh issue list -R "$GITHUB_REPOSITORY" -S "$line" | grep .; then
|
if gh issue list -R "$GITHUB_REPOSITORY" -S "$line" | grep .; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user