Skip to content

Add pre-release

Add pre-release #7

# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)
name: Rolling - pre-release
on:
workflow_dispatch:
inputs:
dependency_level:
description: 'The depth of the depends-on tree to be included in the overlay workspace (-1 implies unlimited, default: 0)'
required: false
default: 0
type: number
pull_request:
branches:
- master
types:
- opened # default
- reopened # default
- synchronize # default
- labeled # also if a label changes
jobs:
default:
if: |
(github.event_name == 'workflow_dispatch') ||
(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'check-prerelease'))
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [kilted, rolling]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: industrial_ci
env:
PRERELEASE: true
# hardcode to 1 if check-prerelease-downstream is triggered, otherwise use input
PRERELEASE_DOWNSTREAM_DEPTH: ${{ (github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'check-prerelease-downstream')) && 1 || inputs.dependency_level}}
BASEDIR: ${{ github.workspace }}/.work
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
DOCKER_IMAGE: ghcr.io/ros-controls/ros:${{ matrix.ROS_DISTRO }}-ubuntu-testing
uses: ros-industrial/industrial_ci@master