forked from ubi-agni/ros-builder-action
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.44 KB
/
splitted.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: splitted
on:
workflow_dispatch:
inputs:
DEB_DISTRO:
type: string
required: true
description: 'Ubuntu/Debian distro:'
default: jammy
PUSH_MODE:
type: choice
description: Push to DEPLOY_URL?
required: true
default: skip
options:
- skip
- push
- amend
- squash
jobs:
robot:
uses: ubi-agni/ros-builder-action/.github/workflows/build.yaml@main
with:
ROS_SOURCES: 1-robot.repos
DEB_DISTRO: ${{ inputs.DEB_DISTRO }}
ROS_DISTRO: one
DOWNLOAD_DEBS: ${{ github.run_attempt != '1' }}
desktop:
needs: robot
uses: ubi-agni/ros-builder-action/.github/workflows/build.yaml@main
with:
ROS_SOURCES: 2-desktop.repos
DEB_DISTRO: ${{ inputs.DEB_DISTRO }}
ROS_DISTRO: one
DOWNLOAD_DEBS: true
desktop-full:
needs: desktop
uses: ubi-agni/ros-builder-action/.github/workflows/build.yaml@main
with:
ROS_SOURCES: 3-desktop-full.repos
DEB_DISTRO: ${{ inputs.DEB_DISTRO }}
ROS_DISTRO: one
DOWNLOAD_DEBS: true
deploy:
needs: desktop-full
if: always() && ( inputs.PUSH_MODE != 'skip' ) && vars.DEPLOY_URL
uses: ubi-agni/ros-builder-action/.github/workflows/deploy.yaml@main
with:
CONTENT_MODE: replace
PUSH_MODE: ${{ inputs.PUSH_MODE || vars.PUSH_MODE }}
secrets:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}