Skip to content

Commit 8dad6cc

Browse files
authored
ci: ensure that git runs on a checkout of the rclrs repository (#522)
Signed-off-by: Esteve Fernandez <[email protected]>
1 parent 03b02bb commit 8dad6cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/generate-bindings.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
7272
- name: Submit PR
7373
run: |
74+
cd rclrs/src
7475
if git diff --exit-code; then
7576
exit 0
7677
fi
@@ -83,7 +84,7 @@ jobs:
8384
CREATE_PR=1
8485
git checkout -b update-bindings-${{ matrix.ros_distribution }}
8586
fi
86-
git add rclrs/src/rcl_bindings_generated_${{ matrix.ros_distribution }}.rs
87+
git add rcl_bindings_generated_${{ matrix.ros_distribution }}.rs
8788
git commit -m "Regenerate bindings for ${{ matrix.ros_distribution }}"
8889
git push -u origin update-bindings-${{ matrix.ros_distribution }}
8990
if [ $CREATE_PR -eq 1 ]; then

0 commit comments

Comments
 (0)