Skip to content

Commit 69fdc35

Browse files
authored
Merge pull request #587 from PickNikRobotics/merge-v9.2-main
Merge v9.2 main
2 parents 700d081 + e68cc45 commit 69fdc35

4 files changed

Lines changed: 49 additions & 46 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: 'Find Release Branch'
2+
description: 'Find the highest v<major>.<minor> branch in the repository.'
3+
outputs:
4+
branch:
5+
description: 'The release branch name (e.g. v9.5).'
6+
value: ${{ steps.find_branch.outputs.branch }}
7+
8+
runs:
9+
using: 'composite'
10+
steps:
11+
- name: Find highest release branch
12+
id: find_branch
13+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
14+
with:
15+
script: |
16+
const owner = context.repo.owner;
17+
const repo = context.repo.repo;
18+
19+
const branchPattern = /^v(\d+)\.(\d+)$/;
20+
const branches = await github.paginate(github.rest.repos.listBranches, {
21+
owner,
22+
repo,
23+
per_page: 100,
24+
});
25+
26+
const versionBranches = branches
27+
.map(b => b.name)
28+
.filter(name => branchPattern.test(name))
29+
.sort((a, b) => {
30+
const [, aMajor, aMinor] = a.match(branchPattern).map(Number);
31+
const [, bMajor, bMinor] = b.match(branchPattern).map(Number);
32+
return bMajor - aMajor || bMinor - aMinor;
33+
});
34+
35+
if (versionBranches.length === 0) {
36+
core.setFailed('No branch matching v<major>.<minor> found.');
37+
return;
38+
}
39+
40+
const branch = versionBranches[0];
41+
core.info(`Found release branch: ${branch}`);
42+
core.setOutput('branch', branch);

.github/workflows/batch-merge-release-branch.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ jobs:
1414
batch-merge-release-branch:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Get current release branch
18-
id: get_current_release_branch
19-
uses: PickNikRobotics/moveit_pro/.github/actions/find_release_branch@v9.2
20-
2117
- name: Checkout code
2218
uses: actions/checkout@v6
2319
with:
2420
ref: main
2521
fetch-depth: 0
2622
lfs: false
2723

24+
- name: Get current release branch
25+
id: get_current_release_branch
26+
uses: ./.github/actions/find_release_branch
27+
2828
- name: Merge release branch into main
2929
id: merge
3030
env:

src/lab_sim/objectives/stack_blocks_with_icp.xml

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/lab_sim/objectives/stitch_multiple_point_clouds_together.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<Action
1919
ID="CreateStampedPose"
2020
orientation_xyzw="0;-1;0;0"
21-
position_xyz="0.5;0.1;0.5"
21+
position_xyz="0.0;0.5;0.8"
2222
stamped_pose="{pose1}"
2323
reference_frame="world"
2424
/>
@@ -30,7 +30,7 @@
3030
<Action
3131
ID="CreateStampedPose"
3232
orientation_xyzw="0;-1;0;0"
33-
position_xyz="0.6;0.2;0.5"
33+
position_xyz="0.3;0.4;0.8"
3434
stamped_pose="{pose2}"
3535
reference_frame="world"
3636
/>
@@ -42,7 +42,7 @@
4242
<Action
4343
ID="CreateStampedPose"
4444
orientation_xyzw="0;-1;0;0"
45-
position_xyz="0.4;0.3;0.5"
45+
position_xyz="0.6;0.5;0.8"
4646
stamped_pose="{pose3}"
4747
reference_frame="world"
4848
/>

0 commit comments

Comments
 (0)