Skip to content

Commit 8ecc45c

Browse files
authored
Add "cancel_old_ci" to Yamato config
By default, Yamato will run on every commit added to a PR after the PR is created. We'd rather just have it run on the latest commit.
1 parent 7e3c17e commit 8ecc45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.yamato/yamato-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ agent:
44
image: robotics/ci-ubuntu20:latest
55
flavor: i1.medium
66
commands:
7-
- echo "Hello world!"
87
- source /opt/ros/noetic/setup.bash && echo "ROS_DISTRO == $ROS_DISTRO" &&
98
cd .. && mkdir -p catkin_ws/src && cp -r ./ROS-TCP-Endpoint catkin_ws/src &&
109
cd catkin_ws && catkin_make && source devel/setup.bash && python3 -m pytest
1110
triggers:
11+
cancel_old_ci: true
1212
expression: |
1313
pull_request.target in ["dev", "main"] AND
1414
NOT pull_request.push.changes.all match "**/*.md" AND

0 commit comments

Comments
 (0)