Skip to content

Commit c436494

Browse files
committed
fix: use workspace path in check-codegen workflow
Signed-off-by: Seth Nickell <snickell@gmail.com>
1 parent 23b8f7f commit c436494

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ jobs:
216216
- name: Git stuff
217217
# As of go 1.20, this seems to be necessary for invoking git commands
218218
# within the container
219-
run: git config --global --add safe.directory /__w/kargo/kargo
219+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
220220
- name: Run Codegen
221221
run: make codegen
222222
- name: Check nothing has changed
223-
run: git diff --exit-code -- .
223+
run: git -C "$GITHUB_WORKSPACE" diff --exit-code -- .
224224

225225
build-image:
226226
needs: [test-unit, lint-go, lint-charts, lint-proto, lint-and-typecheck-ui, check-codegen]

0 commit comments

Comments
 (0)