aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorclassabbyamp <dev@placeviolette.net>2022-04-26 19:31:22 +0000
committerPiotr <chocimier@tlen.pl>2022-04-26 19:33:20 +0000
commitcd824936ce970ebaefe0ed2c22823eac0eb5306a (patch)
tree1622df8680d4d84cec439dd94c87568be5760494 /.github
parent14d0b54a064c0af0a2f9662d46494fe0655a064f (diff)
downloadvoid-packages-cd824936ce970ebaefe0ed2c22823eac0eb5306a.tar
void-packages-cd824936ce970ebaefe0ed2c22823eac0eb5306a.tar.gz
void-packages-cd824936ce970ebaefe0ed2c22823eac0eb5306a.tar.bz2
void-packages-cd824936ce970ebaefe0ed2c22823eac0eb5306a.tar.lz
void-packages-cd824936ce970ebaefe0ed2c22823eac0eb5306a.tar.xz
void-packages-cd824936ce970ebaefe0ed2c22823eac0eb5306a.tar.zst
void-packages-cd824936ce970ebaefe0ed2c22823eac0eb5306a.zip
.github/workflows/cycles.yml: fix git command detection
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cycles.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/cycles.yml b/.github/workflows/cycles.yml
index 72c8d83b2c8..d57976cbeed 100644
--- a/.github/workflows/cycles.yml
+++ b/.github/workflows/cycles.yml
@@ -28,7 +28,13 @@ jobs:
common/travis/prepare.sh
- name: Find cycles and open issues
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
grep 'Cycle:' cycles | while read -r line; do
if gh issue list -R "$GITHUB_REPOSITORY" -S "$line" | grep .; then