aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2022-09-16 01:50:39 +0000
committerĐoàn Trần Công Danh <sgn.danh@gmail.com>2022-09-17 16:32:50 +0000
commit7510b96218505a401831dfa3cbb45aca9cf8d6de (patch)
tree61f39d7cd9099482d78ac6c85ffdcf7cc8c4f459 /.github/workflows
parent77db5140783acb6a5206ea8de8e176be5862fbe1 (diff)
downloadvoid-packages-7510b96218505a401831dfa3cbb45aca9cf8d6de.tar
void-packages-7510b96218505a401831dfa3cbb45aca9cf8d6de.tar.gz
void-packages-7510b96218505a401831dfa3cbb45aca9cf8d6de.tar.bz2
void-packages-7510b96218505a401831dfa3cbb45aca9cf8d6de.tar.lz
void-packages-7510b96218505a401831dfa3cbb45aca9cf8d6de.tar.xz
void-packages-7510b96218505a401831dfa3cbb45aca9cf8d6de.tar.zst
void-packages-7510b96218505a401831dfa3cbb45aca9cf8d6de.zip
common: simplify logic to find git
From chroot-git 2.33.1, we always have an executable named git for other build infrastructure and lints. Let's remove the shenanegan to find which git to be used, prepend the path to chroot-git's git into $PATH, and let's the shell call the correct git for us instead.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cycles.yml8
1 files changed, 2 insertions, 6 deletions
diff --git a/.github/workflows/cycles.yml b/.github/workflows/cycles.yml
index 3f85ac6fa74..7d781076dbe 100644
--- a/.github/workflows/cycles.yml
+++ b/.github/workflows/cycles.yml
@@ -33,13 +33,9 @@ jobs:
common/travis/prepare.sh
- name: Find cycles and open issues
run: |
- 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
+ PATH="/usr/libexec/chroot-git:$PATH"
# required by git 2.35.2+
- $GIT_CMD config --global --add safe.directory "$PWD"
+ git 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