From 86fce1e981e9920b957c11098cd8f705368afdec Mon Sep 17 00:00:00 2001 From: robojerk Date: Sat, 6 Sep 2025 11:33:06 -0700 Subject: [PATCH] Fix step order - install git before checkout - Move setup step before checkout step - Install git and essential tools before trying to use git - This should resolve the 'git: not found' error - Proper order: setup environment -> checkout code -> build packages --- .forgejo/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 0a7bc1d..21e6c69 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -17,14 +17,6 @@ jobs: packages: write steps: - - name: Checkout code - run: | - echo "Cloning repository..." - git clone https://git.raines.xyz/particle-os/ostree.git /tmp/ostree - cd /tmp/ostree - git fetch --all - git checkout ${{ github.sha || gitea.sha || 'main' }} - - name: Setup Debian environment run: | echo "Setting up Debian environment for building..." @@ -49,6 +41,14 @@ jobs: # Install essential tools first (including git) apt install -y git curl build-essential fakeroot devscripts + - name: Checkout code + run: | + echo "Cloning repository..." + git clone https://git.raines.xyz/particle-os/ostree.git /tmp/ostree + cd /tmp/ostree + git fetch --all + git checkout ${{ github.sha || gitea.sha || 'main' }} + - name: Clone ostree from Debian sid run: | echo "Cloning ostree from Debian sid..."