Skip to content
Closed
Prev Previous commit
Next Next commit
reorder commands
  • Loading branch information
tobiasdiez authored Sep 28, 2023
commit 0e7c0a47cfbf4945bc4f0f20f0b6a9f387859c0b
16 changes: 6 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: Install git
run: sudo apt-get install git-core
if: ${{ github.event_name == 'pull_request' }}
- name: Update system packages
id: prepare
run: |
export PATH="build/bin:$PATH"
eval $(sage-print-system-package-command auto update)
eval $(sage-print-system-package-command auto --spkg --yes --no-install-recommends install git)

- name: Install GH CLI
uses: dev-hanz-ops/[email protected]
Expand All @@ -49,13 +52,6 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}

- name: Update system packages
id: prepare
run: |
export PATH="build/bin:$PATH"
eval $(sage-print-system-package-command auto update)
eval $(sage-print-system-package-command auto --spkg --yes --no-install-recommends install git)

- name: Add prebuilt tree as a worktree
id: worktree
run: |
Expand Down