From da24d09134f5a15fb8ad429a27f183222910a805 Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Fri, 23 Feb 2024 00:13:33 -0800 Subject: [PATCH] internal: Use fetch-depth: 0 for action/checkout --- .github/workflows/package-test.yml | 3 +++ .github/workflows/release-airspec.yml | 5 ++--- .github/workflows/release-js.yml | 4 ++-- .github/workflows/release-sbt-plugin.yml | 4 ++-- .github/workflows/release.yml | 2 +- .github/workflows/sbt-integration.yml | 2 +- .github/workflows/snapshot.yml | 4 ++-- 7 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/package-test.yml b/.github/workflows/package-test.yml index 8b7a2caf18..dd25c6a63f 100644 --- a/.github/workflows/package-test.yml +++ b/.github/workflows/package-test.yml @@ -16,6 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + # Fetch all tags so that sbt-dynver can find the previous release version + fetch-depth: 0 - uses: actions/setup-java@v4 with: distribution: 'zulu' diff --git a/.github/workflows/release-airspec.yml b/.github/workflows/release-airspec.yml index f6e2619900..5a9613f00c 100644 --- a/.github/workflows/release-airspec.yml +++ b/.github/workflows/release-airspec.yml @@ -13,10 +13,9 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 10000 - # Fetch all tags so that sbt-dynver can find the previous release version + # Fetch all tags so that sbt-dynver can find the previous release version + fetch-depth: 0 - run: git fetch --tags -f - # Install OpenJDK 11 - uses: actions/setup-java@v4 with: distribution: 'zulu' diff --git a/.github/workflows/release-js.yml b/.github/workflows/release-js.yml index 0051abebce..8e3ad38e02 100644 --- a/.github/workflows/release-js.yml +++ b/.github/workflows/release-js.yml @@ -13,8 +13,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 10000 - # Fetch all tags so that sbt-dynver can find the previous release version + # Fetch all tags so that sbt-dynver can find the previous release version + fetch-depth: 0 - run: git fetch --tags -f - uses: actions/setup-java@v4 with: diff --git a/.github/workflows/release-sbt-plugin.yml b/.github/workflows/release-sbt-plugin.yml index 4c529d2d1e..c8015158d8 100644 --- a/.github/workflows/release-sbt-plugin.yml +++ b/.github/workflows/release-sbt-plugin.yml @@ -13,8 +13,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 10000 - # Fetch all tags so that sbt-dynver can find the previous release version + # Fetch all tags so that sbt-dynver can find the previous release version + fetch-depth: 0 - run: git fetch --tags -f # Install OpenJDK 11 - uses: actions/setup-java@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2eced75f96..c624a3528c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 # Fetch all tags so that sbt-dynver can find the previous release version + fetch-depth: 0 - run: git fetch --tags -f - uses: actions/setup-java@v4 with: diff --git a/.github/workflows/sbt-integration.yml b/.github/workflows/sbt-integration.yml index 16445a67d6..c37dbfa0d9 100644 --- a/.github/workflows/sbt-integration.yml +++ b/.github/workflows/sbt-integration.yml @@ -29,8 +29,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 # Fetch all tags so that sbt-dynver can find the previous release version + fetch-depth: 0 - run: git fetch --tags -f - uses: actions/setup-java@v4 with: diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 9635216eaf..7a3cd3b9d3 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -19,8 +19,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 10000 - # Fetch all tags so that sbt-dynver can find the previous release version + # Fetch all tags so that sbt-dynver can find the previous release version + fetch-depth: 0 - run: git fetch --tags - uses: actions/setup-java@v4 with: