Skip to content

Commit 105d08f

Browse files
committed
Remove superfluous checkout step from "Release" workflow
The `create-release` job of the "Release" workflow creates a GitHub release and uploads the built binaries as release assets. Since the binaries come from the workflow artifact, there is no need for this job to checkout the repository. The pre-release identification step uses the `GITHUB_REF` environment variable defined by GitHub Actions, which is not dependent on the runner having a repository checked out. This means the checkout step serves no purpose. Since it makes the workflow less efficient and more difficult to maintain, it must be removed.
1 parent 84aeda6 commit 105d08f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

.github/workflows/release-go-task.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ jobs:
129129
needs: notarize-macos
130130

131131
steps:
132-
- name: Checkout repository
133-
uses: actions/checkout@v2
134-
135132
- name: Download artifact
136133
uses: actions/download-artifact@v2
137134
with:

0 commit comments

Comments
 (0)