File tree 1 file changed +12
-6
lines changed
1 file changed +12
-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 }}
18
+ runs-on : ubuntu-latest
15
19
container :
16
20
image : osrf/ros:humble-desktop
17
- strategy :
18
- matrix :
19
- os : [ubuntu-22.04]
20
- fail-fast : false
21
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 }}
22
26
- name : Install deps
23
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
24
28
- name : Setup ros
27
31
required-ros-distributions : humble
28
32
- name : Checkout Aerostack2
29
33
run : |
30
- 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
31
37
- name : build and test
32
38
uses : ros-tooling/action-ros-ci@v0.3
33
39
with :
You can’t perform that action at this time.
0 commit comments