Skip to content

Commit 728c548

Browse files
committed
ci: correct working-directory for sdk-platform-java verify library generation
1 parent f131959 commit 728c548

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/sdk-platform-java-verify_library_generation.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
git checkout -b "${head_ref}" fork/${head_ref}
4444
changed_directories="$(git diff --name-only "fork/${head_ref}" "origin/${base_ref}")"
4545
fi
46-
if [[ ${changed_directories} =~ "hermetic_build/" ]] || [[ ${changed_directories} =~ ".cloudbuild/library_generation/" ]]; then
46+
if [[ ${changed_directories} =~ "sdk-platform-java/hermetic_build/" ]] || [[ ${changed_directories} =~ "sdk-platform-java/.cloudbuild/library_generation/" ]]; then
4747
echo "should_run=true" >> $GITHUB_OUTPUT
4848
else
4949
echo "should_run=false" >> $GITHUB_OUTPUT
@@ -58,6 +58,9 @@ jobs:
5858
needs: [filter, should-run-library-generation-tests]
5959
if: needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true'
6060
runs-on: ubuntu-22.04
61+
defaults:
62+
run:
63+
working-directory: sdk-platform-java
6164
steps:
6265
- uses: actions/checkout@v4
6366
- uses: actions/setup-python@v5
@@ -86,12 +89,15 @@ jobs:
8689
needs: [filter, should-run-library-generation-tests]
8790
if: needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true'
8891
runs-on: ubuntu-22.04
92+
defaults:
93+
run:
94+
working-directory: sdk-platform-java
8995
steps:
9096
- uses: actions/checkout@v4
9197
- name: Run ShellCheck
9298
uses: ludeeus/action-shellcheck@2.0.0
9399
with:
94-
scandir: 'hermetic_build'
100+
scandir: 'sdk-platform-java/hermetic_build'
95101
format: tty
96102
severity: error
97103
ignore_paths:
@@ -100,6 +106,9 @@ jobs:
100106
needs: [filter, should-run-library-generation-tests]
101107
if: needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true'
102108
runs-on: ubuntu-22.04
109+
defaults:
110+
run:
111+
working-directory: sdk-platform-java
103112
steps:
104113
- uses: actions/checkout@v4
105114
- uses: actions/setup-python@v5

0 commit comments

Comments
 (0)