ci: make sure checkouts fetch tags

This commit is contained in:
sithlord48 2024-10-13 19:20:50 -04:00 committed by Chris Rizzitello
parent 24db09b023
commit e4b348c183
4 changed files with 48 additions and 16 deletions

View file

@ -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' }}

View file

@ -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

View file

@ -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: |

View file

@ -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: |