Skip to content

Commit 1193a90

Browse files
committed
deal with custom fork repo name
Signed-off-by: reggie-k <regina.voloshin@codefresh.io>
1 parent edf549d commit 1193a90

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci-build.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
- name: Checkout code
131131
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
132132
- name: Create symlink in GOPATH
133-
run: ln -s $(pwd) ~/go/src/github.com/argoproj/${{ github.repository }}
133+
run: ln -s $(pwd) ~/go/src/github.com/argoproj/${{ github.event.repository.name }}
134134
- name: Setup Golang
135135
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
136136
with:
@@ -194,7 +194,7 @@ jobs:
194194
- name: Checkout code
195195
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
196196
- name: Create symlink in GOPATH
197-
run: ln -s $(pwd) ~/go/src/github.com/argoproj/${{ github.repository }}
197+
run: ln -s $(pwd) ~/go/src/github.com/argoproj/${{ github.event.repository.name }}
198198
- name: Setup Golang
199199
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
200200
with:
@@ -275,7 +275,7 @@ jobs:
275275
run: |
276276
make install-codegen-tools-local
277277
make install-go-tools-local
278-
working-directory: /home/runner/go/src/github.com/argoproj/${{ github.repository }}
278+
working-directory: /home/runner/go/src/github.com/argoproj/${{ github.event.repository.name }}
279279
# We install kustomize in the dist directory
280280
- name: Add dist to PATH
281281
run: |
@@ -286,12 +286,12 @@ jobs:
286286
export GOPATH=$(go env GOPATH)
287287
git checkout -- go.mod go.sum
288288
make codegen-local
289-
working-directory: /home/runner/go/src/github.com/argoproj/${{ github.repository }}
289+
working-directory: /home/runner/go/src/github.com/argoproj/${{ github.event.repository.name }}
290290
- name: Check nothing has changed
291291
run: |
292292
set -xo pipefail
293293
git diff --exit-code -- . ':!go.sum' ':!go.mod' ':!assets/swagger.json' | tee codegen.patch
294-
working-directory: /home/runner/go/src/github.com/argoproj/${{ github.repository }}
294+
working-directory: /home/runner/go/src/github.com/argoproj/${{ github.event.repository.name }}
295295

296296
build-ui:
297297
name: Build, test & lint UI code

0 commit comments

Comments
 (0)