From c90189229db522b7c1fe5976f329a47f3b164aca Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Fri, 6 Nov 2020 16:21:42 -0700 Subject: [PATCH] feat(CI): Adjust fetch depth for tests and release actions The previous commit had the fetch depths backwards. It pulled all commits for tests where we only needed one and only one commit for release where we need all (to generate a changelog and correctly do semantic release). This commit is being marked as a feature to correctly release the last minor version. --- .github/workflows/cron.yml | 2 -- .github/workflows/pr.yml | 4 ---- .github/workflows/prerelease.yml | 8 ++++---- .github/workflows/release.yml | 4 ++-- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 1c379dbd..722bf290 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -14,8 +14,6 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Setup Java JDK uses: actions/setup-java@v1.4.3 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 421964d1..0ab007f8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,8 +22,6 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Setup Java JDK uses: actions/setup-java@v1.4.3 @@ -50,8 +48,6 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Setup Java JDK uses: actions/setup-java@v1.4.3 diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 17b49909..4ab89f00 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -16,8 +16,6 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Setup Java JDK uses: actions/setup-java@v1.4.3 @@ -46,8 +44,10 @@ jobs: # env: # GA_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} # steps: - # - name: Checkout Repository - # uses: actions/checkout@v2 + # - name: Checkout Repository + # uses: actions/checkout@v2 + # with: + # fetch-depth: 0 # - name: Setup Java JDK # uses: actions/setup-java@v1.4.3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fabc134..dbae0723 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,8 +17,6 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Setup Java JDK uses: actions/setup-java@v1.4.3 @@ -49,6 +47,8 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Setup Java JDK uses: actions/setup-java@v1.4.3