Skip to content

Commit 84aeda6

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 7d225e4 commit 84aeda6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

.github/workflows/publish-go-tester-task.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ jobs:
6060
steps:
6161
- name: Checkout repository
6262
uses: actions/checkout@v2
63-
with:
64-
fetch-depth: 0
6563

6664
- name: Install Task
6765
uses: arduino/setup-task@v1

0 commit comments

Comments
 (0)