Skip to content

Commit c7a3a69

Browse files
committed
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.
1 parent 8e7ddc5 commit c7a3a69

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

workflow-templates/dependabot/workflow-template-copies/.github/workflows/publish-go-tester-task.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
steps:
3535
- name: Checkout repository
3636
uses: actions/checkout@v2
37-
with:
38-
fetch-depth: 0
3937

4038
- name: Install Task
4139
uses: arduino/setup-task@v1

workflow-templates/publish-go-tester-task.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
steps:
3535
- name: Checkout repository
3636
uses: actions/checkout@v2
37-
with:
38-
fetch-depth: 0
3937

4038
- name: Install Task
4139
uses: arduino/setup-task@v1

0 commit comments

Comments
 (0)