ci: make sure checkouts fetch tags
This commit is contained in:
parent
24db09b023
commit
e4b348c183
4 changed files with 48 additions and 16 deletions
38
.github/workflows/ci.yml
vendored
38
.github/workflows/ci.yml
vendored
|
|
@ -140,9 +140,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get version
|
||||
uses: ./.github/actions/get-version
|
||||
# the fetch-tags option for checkout does not work correctly so we need todo this
|
||||
- name: Fetch tags
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git fetch --tags --force
|
||||
|
||||
- name: Cache vcpkg dir
|
||||
uses: actions/cache@v4
|
||||
|
|
@ -232,9 +237,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get version
|
||||
uses: ./.github/actions/get-version
|
||||
# the fetch-tags option for checkout does not work correctly so we need todo this
|
||||
- name: Fetch tags
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git fetch --tags --force
|
||||
|
||||
- name: Cache deps dir
|
||||
uses: actions/cache@v4
|
||||
|
|
@ -307,12 +317,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get version
|
||||
uses: ./.github/actions/get-version
|
||||
|
||||
- name: Config Git safe dir
|
||||
run: git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
# the fetch-tags option for checkout does not work correctly so we need todo this
|
||||
- name: Fetch tags
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git fetch --tags --force
|
||||
|
||||
- name: Install dependencies
|
||||
run: ./scripts/install_deps.py ${{ matrix.distro.extra-dep-args }}
|
||||
|
|
@ -370,6 +382,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# the fetch-tags option for checkout does not work correctly so we need todo this
|
||||
- name: Fetch tags
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git fetch --tags --force
|
||||
|
||||
- name: Build on FreeBSD
|
||||
if: ${{ matrix.distro.name == 'freebsd' }}
|
||||
|
|
|
|||
9
.github/workflows/codeql-analysis.yml
vendored
9
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -21,9 +21,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Config Git safe dir
|
||||
run: git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
# the fetch-tags option for checkout does not work correctly so we need todo this
|
||||
- name: Fetch tags
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git fetch --tags --force
|
||||
|
||||
- name: Install dependencies
|
||||
run: ./scripts/install_deps.py
|
||||
|
|
|
|||
8
.github/workflows/sonarcloud-analysis.yml
vendored
8
.github/workflows/sonarcloud-analysis.yml
vendored
|
|
@ -25,11 +25,13 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Fetch all history for SonarScanner blame data
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Config Git safe dir
|
||||
run: git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
# the fetch-tags option for checkout does not work correctly so we need todo this
|
||||
- name: Fetch tags
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git fetch --tags --force
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
|
|
|||
9
.github/workflows/valgrind-analysis.yml
vendored
9
.github/workflows/valgrind-analysis.yml
vendored
|
|
@ -13,9 +13,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Config Git safe dir
|
||||
run: git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
# the fetch-tags option for checkout does not work correctly so we need todo this
|
||||
- name: Fetch tags
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
git fetch --tags --force
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue