Skip to content

Commit e8d714b

Browse files
Add config for labels and comments
1 parent ad18aa3 commit e8d714b

2 files changed

Lines changed: 46 additions & 25 deletions

File tree

.github/workflows/pre-release.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
2+
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)
3+
4+
name: Rolling - pre-release
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
dependency_level:
10+
description: 'The depth of the depends-on tree to be included in the overlay workspace (-1 implies unlimited, default: 0)'
11+
required: false
12+
default: 0
13+
type: number
14+
pull_request:
15+
branches:
16+
- master
17+
types:
18+
- labeled
19+
issue_comment:
20+
types:
21+
- created
22+
23+
jobs:
24+
default:
25+
if: |
26+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/check-prerelease')) ||
27+
(github.event_name == 'pull_request' && contains(github.event.label.name, 'check-prerelease')) ||
28+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/check-prerelease-downstream')) ||
29+
(github.event_name == 'pull_request' && contains(github.event.label.name, 'check-prerelease-downstream')) ||
30+
(github.event_name == 'workflow_dispatch')
31+
32+
env:
33+
ROS_DISTRO: rolling
34+
35+
name: ${{ github.env.ROS_DISTRO }}
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v5
39+
- name: industrial_ci
40+
env:
41+
PRERELEASE: true
42+
# hardcode to 1 if check-prerelease-downstream is triggered, otherwise use input
43+
PRERELEASE_DOWNSTREAM_DEPTH: ${{ ((github.event_name == 'issue_comment' && contains(github.event.comment.body, '/check-prerelease-downstream')) || (github.event_name == 'pull_request' && contains(github.event.label.name, 'check-prerelease-downstream'))) && 1 || inputs.dependency_level}}
44+
BASEDIR: ${{ github.workspace }}/.work
45+
DOCKER_IMAGE: ghcr.io/ros-controls/ros:${{ env.ROS_DISTRO }}-ubuntu-testing
46+
uses: ros-industrial/industrial_ci@master

0 commit comments

Comments
 (0)