Fix step order - install git before checkout
Some checks failed
Build ostree packages from sid to trixie / Build ostree packages (push) Failing after 6m3s

- 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
This commit is contained in:
robojerk 2025-09-06 11:33:06 -07:00
parent b1e16e9542
commit 86fce1e981

View file

@ -17,14 +17,6 @@ jobs:
packages: write packages: write
steps: 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 - name: Setup Debian environment
run: | run: |
echo "Setting up Debian environment for building..." echo "Setting up Debian environment for building..."
@ -49,6 +41,14 @@ jobs:
# Install essential tools first (including git) # Install essential tools first (including git)
apt install -y git curl build-essential fakeroot devscripts 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 - name: Clone ostree from Debian sid
run: | run: |
echo "Cloning ostree from Debian sid..." echo "Cloning ostree from Debian sid..."