|
27 | 27 | steps: |
28 | 28 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
29 | 29 |
|
| 30 | + - name: Authenticate git for the private Go SDK repo |
| 31 | + if: github.repository == 'context-dot-dev/context-dev-cli-staging' |
| 32 | + env: |
| 33 | + GO_MODULE_REPO: context-dot-dev/context-go-sdk-staging |
| 34 | + GO_REPO_READ_TOKEN: ${{ secrets.GO_REPO_READ_TOKEN }} |
| 35 | + run: | |
| 36 | + git config --global url."https://x-access-token:${GO_REPO_READ_TOKEN}@github.com/${GO_MODULE_REPO}".insteadOf "https://github.com/${GO_MODULE_REPO}" |
| 37 | +
|
30 | 38 | - uses: ./.github/actions/setup-go |
31 | 39 | with: |
32 | 40 | stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} |
|
53 | 61 | steps: |
54 | 62 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
55 | 63 |
|
| 64 | + - name: Authenticate git for the private Go SDK repo |
| 65 | + if: github.repository == 'context-dot-dev/context-dev-cli-staging' |
| 66 | + env: |
| 67 | + GO_MODULE_REPO: context-dot-dev/context-go-sdk-staging |
| 68 | + GO_REPO_READ_TOKEN: ${{ secrets.GO_REPO_READ_TOKEN }} |
| 69 | + run: | |
| 70 | + git config --global url."https://x-access-token:${GO_REPO_READ_TOKEN}@github.com/${GO_MODULE_REPO}".insteadOf "https://github.com/${GO_MODULE_REPO}" |
| 71 | +
|
56 | 72 | - uses: ./.github/actions/setup-go |
57 | 73 | with: |
58 | 74 | stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} |
@@ -100,6 +116,14 @@ jobs: |
100 | 116 | steps: |
101 | 117 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
102 | 118 |
|
| 119 | + - name: Authenticate git for the private Go SDK repo |
| 120 | + if: github.repository == 'context-dot-dev/context-dev-cli-staging' |
| 121 | + env: |
| 122 | + GO_MODULE_REPO: context-dot-dev/context-go-sdk-staging |
| 123 | + GO_REPO_READ_TOKEN: ${{ secrets.GO_REPO_READ_TOKEN }} |
| 124 | + run: | |
| 125 | + git config --global url."https://x-access-token:${GO_REPO_READ_TOKEN}@github.com/${GO_MODULE_REPO}".insteadOf "https://github.com/${GO_MODULE_REPO}" |
| 126 | +
|
103 | 127 | - uses: ./.github/actions/setup-go |
104 | 128 | with: |
105 | 129 | stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} |
|
0 commit comments