From ac58d7404501504740df7767bda62355037a02f5 Mon Sep 17 00:00:00 2001 From: Artur Date: Tue, 12 Mar 2024 11:12:18 +0100 Subject: [PATCH] set fetch-depth: 0 for GitHub Actions --- .github/workflows/ci.yml | 10 ++++------ .github/workflows/different-job.yml | 5 ++--- .github/workflows/same-job.yml | 5 ++--- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5437537..c29c1d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,8 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - name: Fetch all history for all tags and branches - run: | - git fetch --prune --unshallow + with: + fetch-depth: 0 - uses: gittools/actions/gitversion/setup@v1.0.0 name: Install GitVersion with: @@ -42,9 +41,8 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - name: Fetch all history for all tags and branches - run: | - git fetch --prune --unshallow + with: + fetch-depth: 0 - uses: gittools/actions/gitversion/setup@v1.0.0 name: Install GitVersion with: diff --git a/.github/workflows/different-job.yml b/.github/workflows/different-job.yml index 132c94b..8c80567 100644 --- a/.github/workflows/different-job.yml +++ b/.github/workflows/different-job.yml @@ -21,9 +21,8 @@ jobs: GitVersion_FullSemVer: ${{ steps.version_step.outputs.GitVersion_FullSemVer }} steps: - uses: actions/checkout@v4 - - name: Fetch all history for all tags and branches - run: | - git fetch --prune --unshallow + with: + fetch-depth: 0 - uses: gittools/actions/gitversion/setup@v1.0.0 name: Install GitVersion with: diff --git a/.github/workflows/same-job.yml b/.github/workflows/same-job.yml index fd27549..c1e0d44 100644 --- a/.github/workflows/same-job.yml +++ b/.github/workflows/same-job.yml @@ -11,9 +11,8 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - name: Fetch all history for all tags and branches - run: | - git fetch --prune --unshallow + with: + fetch-depth: 0 - uses: gittools/actions/gitversion/setup@v1.0.0 name: Install GitVersion with: