From 7b45520f376cbb9a1dcfd32d518b56c656c3d63b Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Fri, 13 May 2022 15:56:20 +0200 Subject: [PATCH] fix(ci): fetch all history from git to correctly populate FALCO_VERSION. Signed-off-by: Federico Di Pierro --- .github/workflows/ci.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc219fde..412f4965 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,9 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Update base image run: sudo apt update -y @@ -39,7 +41,9 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Update base image run: sudo apt update -y @@ -70,7 +74,9 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Update base image run: sudo apt update -y @@ -101,7 +107,9 @@ jobs: runs-on: ubuntu-18.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Update base image run: sudo apt update -y @@ -136,8 +144,9 @@ jobs: BUILD_TYPE: "debug" steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: + fetch-depth: 0 path: falco - name: Link falco repo to /source/falco