File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 8
8
push :
9
9
branches :
10
10
- main
11
+ workflow_dispatch :
12
+ inputs :
13
+ distinct_id :
14
+ target_branch :
11
15
12
16
jobs :
13
17
build-and-test :
14
- runs-on : ${{ matrix.os }}
15
- strategy :
16
- matrix :
17
- os : [ubuntu-22.04]
18
- fail-fast : false
18
+ runs-on : ubuntu-latest
19
+ container :
20
+ image : osrf/ros:humble-desktop
19
21
steps :
22
+ - name : echo distinct ID ${{ github.event.inputs.distinct_id }}
23
+ run : |
24
+ echo ${{ github.event.inputs.distinct_id }}
25
+ echo target_branch : ${{ github.event.inputs.target_branch }}
26
+ - name : Install deps
27
+ run : sudo apt-get update && sudo apt-get install -y lcov python3-vcstool python3-colcon-lcov-result python3-colcon-coveragepy-result python3-rosdep python3-pip python3-colcon-common-extensions python3-empy
20
28
- name : Setup ros
21
29
uses : ros-tooling/setup-ros@v0.7
22
30
with :
23
31
required-ros-distributions : humble
24
32
- name : Checkout Aerostack2
25
33
run : |
26
- echo 'repositories:\n aerostack2:\n type: git\n url: https://github.com/aerostack2/aerostack2.git\n version: main' >> /tmp/dependencies.repos
34
+ export TARGET_BRANCH=${{ github.event.inputs.target_branch }}
35
+ if [ -z "$TARGET_BRANCH" ]; then export TARGET_BRANCH=main; echo "No target branch provided, using $TARGET_BRANCH"; fi
36
+ echo "repositories:\n aerostack2:\n type: git\n url: https://github.com/aerostack2/aerostack2.git\n version: $TARGET_BRANCH " >> /tmp/dependencies.repos
27
37
- name : build and test
28
38
uses : ros-tooling/action-ros-ci@v0.3
29
39
with :
You can’t perform that action at this time.
0 commit comments