From e67b05a01e526be706ebeb9fcc067b41bc7b53f3 Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Sun, 8 Jun 2025 14:40:02 -0400 Subject: [PATCH] CI: Install git before attempting checkout --- .github/workflows/appimage.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml index 2fbe65673a..c2b69a841e 100644 --- a/.github/workflows/appimage.yml +++ b/.github/workflows/appimage.yml @@ -42,7 +42,10 @@ jobs: container: ghcr.io/pkgforge-dev/archlinux:latest steps: - - uses: actions/checkout@v1 # v2+ seems to have submodules issue with the archlinux container + - name: Install git + run: pacman -Syu --noconfirm git + + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive @@ -51,8 +54,6 @@ jobs: id: valid-tags shell: bash run: | - # The archlinux container doesn't seems to have git installed? - pacman -Syu --noconfirm git # Fix dubious ownership issue when running git describe inside a container git config --global --add safe.directory "$PWD" # Alternatively, chown -R $(id -u):$(id -g) $PWD echo "count=$(git tag -l 'v[0-9]*' | wc -l | tr -d ' ')" >> $GITHUB_OUTPUT