From c7a3a691fded31f47980feafba0a1dfa91a95ec4 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 15 Aug 2021 19:27:09 -0700 Subject: [PATCH] Use shallow fetch for Go tester build The default behavior of the `actions/checkout` action is to do a shallow fetch of the repository, which is the most efficient if all that's needed is a copy of the repository files. In cases where the repository history is needed, this behavior is not appropriate, and so it can be configured via the `fetch-depth` input. Setting this input to 0 causes the full history to be fetched. A full fetch is required for workflows that use the `arduino/create-changelog` action to generate a raw changelog from the commit history, and so it is found in the "Release" workflow. However, there is no use of the commit history by the "Publish Tester Build" workflow, which does not need a changelog. The unnecessary full fetch makes the workflow less efficient and more difficult to understand, so it must be removed. --- .../.github/workflows/publish-go-tester-task.yml | 2 -- workflow-templates/publish-go-tester-task.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/workflow-templates/dependabot/workflow-template-copies/.github/workflows/publish-go-tester-task.yml b/workflow-templates/dependabot/workflow-template-copies/.github/workflows/publish-go-tester-task.yml index 383aecb9..b26ec07f 100644 --- a/workflow-templates/dependabot/workflow-template-copies/.github/workflows/publish-go-tester-task.yml +++ b/workflow-templates/dependabot/workflow-template-copies/.github/workflows/publish-go-tester-task.yml @@ -34,8 +34,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Install Task uses: arduino/setup-task@v1 diff --git a/workflow-templates/publish-go-tester-task.yml b/workflow-templates/publish-go-tester-task.yml index 383aecb9..b26ec07f 100644 --- a/workflow-templates/publish-go-tester-task.yml +++ b/workflow-templates/publish-go-tester-task.yml @@ -34,8 +34,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Install Task uses: arduino/setup-task@v1