fix(ci): fetch all history from git to correctly populate FALCO_VERSION.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro 2022-05-13 15:56:20 +02:00 committed by poiana
parent 2b6c0f3f9e
commit 7b45520f37

View File

@ -8,7 +8,9 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update base image - name: Update base image
run: sudo apt update -y run: sudo apt update -y
@ -39,7 +41,9 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update base image - name: Update base image
run: sudo apt update -y run: sudo apt update -y
@ -70,7 +74,9 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update base image - name: Update base image
run: sudo apt update -y run: sudo apt update -y
@ -101,7 +107,9 @@ jobs:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update base image - name: Update base image
run: sudo apt update -y run: sudo apt update -y
@ -136,8 +144,9 @@ jobs:
BUILD_TYPE: "debug" BUILD_TYPE: "debug"
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0
path: falco path: falco
- name: Link falco repo to /source/falco - name: Link falco repo to /source/falco