Fix step order - install git before checkout
Some checks failed
Build ostree packages from sid to trixie / Build ostree packages (push) Failing after 6m3s
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:
parent
b1e16e9542
commit
86fce1e981
1 changed files with 8 additions and 8 deletions
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue