Add pre-release #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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: | |
| - labeled | |
| issue_comment: | |
| #note: This event will only trigger a workflow run if the workflow file exists on the default branch. | |
| types: | |
| - created | |
| jobs: | |
| default: | |
| if: | | |
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '/check-prerelease')) || | |
| (github.event_name == 'pull_request' && contains(github.event.label.name, 'check-prerelease')) || | |
| (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')) || | |
| (github.event_name == 'workflow_dispatch') | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ROS_DISTRO: [kilted, rolling] | |
| name: ${{ github.env.ROS_DISTRO }} | |
| 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 == '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}} | |
| 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 |