Skip to content

Commit daa7a01

Browse files
committed
ci - install git before actions/checkout step
If checkout is done before git is installed, the repo is not cloned using git but downloaded over https, which results in the repo missing its .git directory.
1 parent 4fcaf73 commit daa7a01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/packages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
container: ${{ matrix.image }}
2323

2424
steps:
25-
- uses: actions/checkout@v2
2625
- name: Define variables
2726
uses: actions/github-script@v5
2827
with:
@@ -46,6 +45,9 @@ jobs:
4645
env:
4746
DEBIAN_FRONTEND: noninteractive
4847

48+
# Checkout repository --------------------------------------------------------------------
49+
- uses: actions/checkout@v2
50+
4951
# Build LIBFDS DEB package ---------------------------------------------------------------
5052
- name: Checkout libfds library - master branch
5153
if: github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)