Skip to content

Commit 1185c7e

Browse files
committed
set GOPRIVATE
1 parent c3dfa81 commit 1185c7e

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/generate-go-docs.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131

32+
- name: Configure git for private repository and install go doc generator
33+
env:
34+
GOPRIVATE: github.com/smartcontractkit/generate-go-function
35+
run: |
36+
git config --global url.ssh://[email protected]/.insteadOf https://github.com/
37+
go install github.com/smartcontractkit/generate-go-function-docs@latest
38+
39+
- name: Install gopls
40+
shell: bash
41+
run: |
42+
go install golang.org/x/tools/gopls@latest
43+
3244
- name: Setup Git
3345
run: |
3446
git config user.name "github-actions[bot]"
@@ -42,16 +54,6 @@ jobs:
4254
echo "base_commit=${{ github.event.pull_request.base.sha }}" >> $GITHUB_OUTPUT
4355
echo "head_commit=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
4456
45-
- name: Install go doc generator
46-
shell: bash
47-
run: |
48-
go install github.com/smartcontractkit/generate-go-function-docs@latest
49-
50-
- name: Install gopls
51-
shell: bash
52-
run: |
53-
go install golang.org/x/tools/gopls@latest
54-
5557
- name: Create a new branch
5658
run: |
5759
git checkout -b ${{ steps.pr-details.outputs.pr_branch }}-docs

0 commit comments

Comments
 (0)