Skip to content

Commit b946576

Browse files
Retrigger without removing label?
1 parent 87f3bc8 commit b946576

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/rolling-pre-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ on:
1515
branches:
1616
- master
1717
types:
18-
- labeled
18+
- opened # default
19+
- reopened # default
20+
- synchronize # default
21+
- labeled # also if a label changes
22+
1923

2024
jobs:
2125
default:
2226
if: |
23-
(github.event_name == 'pull_request' && contains(github.event.label.name, 'check-prerelease')) ||
24-
(github.event_name == 'workflow_dispatch')
27+
(github.event_name == 'workflow_dispatch') ||
28+
(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'check-prerelease'))
2529
2630
strategy:
2731
fail-fast: false
@@ -34,7 +38,7 @@ jobs:
3438
env:
3539
PRERELEASE: true
3640
# hardcode to 1 if check-prerelease-downstream is triggered, otherwise use input
37-
PRERELEASE_DOWNSTREAM_DEPTH: ${{ (github.event_name == 'pull_request' && contains(github.event.label.name, 'check-prerelease-downstream')) && 1 || inputs.dependency_level}}
41+
PRERELEASE_DOWNSTREAM_DEPTH: ${{ (github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'check-prerelease-downstream')) && 1 || inputs.dependency_level}}
3842
BASEDIR: ${{ github.workspace }}/.work
3943
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
4044
DOCKER_IMAGE: ghcr.io/ros-controls/ros:${{ matrix.ROS_DISTRO }}-ubuntu-testing

0 commit comments

Comments
 (0)