From aaee4bf6d162fae7c9ca8b2dfe793f9a9b27e79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Fr=C3=B6hlich?= Date: Tue, 14 May 2024 13:54:37 +0200 Subject: [PATCH] [CI] Add path-filters and fix branches for check-docs (#519) * Fix branches for check-docs * Fix iron * Add path filters * Include workflow file to paths filter (cherry picked from commit e6543df4d94ce7ee83d8a0c645439e467a555e92) --- .github/workflows/humble-binary-build.yml | 20 ++++++++++++++++ .github/workflows/humble-check-docs.yml | 17 ++++++++++++++ .../workflows/humble-semi-binary-build.yml | 20 ++++++++++++++++ .github/workflows/iron-binary-build.yml | 20 ++++++++++++++++ ...{ci-check-docs.yml => iron-check-docs.yml} | 9 ++++++-- .github/workflows/iron-docker-build.yaml | 22 ++++++++++++++++++ .github/workflows/iron-semi-binary-build.yml | 21 +++++++++++++++++ .github/workflows/rolling-binary-build.yml | 20 ++++++++++++++++ .github/workflows/rolling-check-docs.yml | 23 +++++++++++++++++++ .github/workflows/rolling-docker-build.yaml | 22 ++++++++++++++++++ .../workflows/rolling-semi-binary-build.yml | 20 ++++++++++++++++ 11 files changed, 212 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/humble-check-docs.yml rename .github/workflows/{ci-check-docs.yml => iron-check-docs.yml} (55%) create mode 100644 .github/workflows/rolling-check-docs.yml diff --git a/.github/workflows/humble-binary-build.yml b/.github/workflows/humble-binary-build.yml index 4a9ec535b..5c4f224b8 100644 --- a/.github/workflows/humble-binary-build.yml +++ b/.github/workflows/humble-binary-build.yml @@ -5,9 +5,29 @@ on: pull_request: branches: - humble + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/humble-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos-not-released.humble.repos' push: branches: - humble + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/humble-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos-not-released.humble.repos' schedule: # Run every morning to detect flakiness and broken dependencies - cron: '03 1 * * *' diff --git a/.github/workflows/humble-check-docs.yml b/.github/workflows/humble-check-docs.yml new file mode 100644 index 000000000..770128953 --- /dev/null +++ b/.github/workflows/humble-check-docs.yml @@ -0,0 +1,17 @@ +name: Humble Check Docs + +on: + workflow_dispatch: + pull_request: + branches: + - humble + paths: + - '**.rst' + - '.github/workflows/humble-check-docs.yml' + +jobs: + check-docs: + name: Check Docs + uses: ros-controls/control.ros.org/.github/workflows/reusable-sphinx-check-single-version.yml@humble + with: + ROS2_CONTROL_DEMOS_PR: ${{ github.ref }} diff --git a/.github/workflows/humble-semi-binary-build.yml b/.github/workflows/humble-semi-binary-build.yml index 49cba23a3..5ed87435b 100644 --- a/.github/workflows/humble-semi-binary-build.yml +++ b/.github/workflows/humble-semi-binary-build.yml @@ -5,9 +5,29 @@ on: pull_request: branches: - humble + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/humble-semi-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.humble.repos' push: branches: - humble + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/humble-semi-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.humble.repos' schedule: # Run every morning to detect flakiness and broken dependencies - cron: '33 1 * * *' diff --git a/.github/workflows/iron-binary-build.yml b/.github/workflows/iron-binary-build.yml index 40d20d218..6fdc7600e 100644 --- a/.github/workflows/iron-binary-build.yml +++ b/.github/workflows/iron-binary-build.yml @@ -6,9 +6,29 @@ on: pull_request: branches: - iron + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/iron-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos-not-released.iron.repos' push: branches: - iron + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/iron-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos-not-released.iron.repos' schedule: # Run every morning to detect flakiness and broken dependencies - cron: '03 1 * * *' diff --git a/.github/workflows/ci-check-docs.yml b/.github/workflows/iron-check-docs.yml similarity index 55% rename from .github/workflows/ci-check-docs.yml rename to .github/workflows/iron-check-docs.yml index b4f3892a8..cb3b2c061 100644 --- a/.github/workflows/ci-check-docs.yml +++ b/.github/workflows/iron-check-docs.yml @@ -1,12 +1,17 @@ -name: Check Docs +name: Iron Check Docs on: workflow_dispatch: pull_request: + branches: + - iron + paths: + - '**.rst' + - '.github/workflows/iron-check-docs.yml' jobs: check-docs: name: Check Docs - uses: ros-controls/control.ros.org/.github/workflows/reusable-sphinx-check-single-version.yml@master + uses: ros-controls/control.ros.org/.github/workflows/reusable-sphinx-check-single-version.yml@iron with: ROS2_CONTROL_DEMOS_PR: ${{ github.ref }} diff --git a/.github/workflows/iron-docker-build.yaml b/.github/workflows/iron-docker-build.yaml index c1f89dc4d..03f91c407 100644 --- a/.github/workflows/iron-docker-build.yaml +++ b/.github/workflows/iron-docker-build.yaml @@ -5,9 +5,31 @@ on: pull_request: branches: - iron + paths: + - '**.hpp' + - '**.cpp' + - Dockerfile/** + - '.github/workflows/iron-docker-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.iron.repos' push: branches: - iron + paths: + - '**.hpp' + - '**.cpp' + - Dockerfile/** + - '.github/workflows/iron-docker-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.iron.repos' schedule: # Run every morning to detect broken dependencies - cron: '50 1 * * *' diff --git a/.github/workflows/iron-semi-binary-build.yml b/.github/workflows/iron-semi-binary-build.yml index 0b69b6c3c..9ca613d14 100644 --- a/.github/workflows/iron-semi-binary-build.yml +++ b/.github/workflows/iron-semi-binary-build.yml @@ -5,9 +5,30 @@ on: pull_request: branches: - iron + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/iron-semi-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.iron.repos' push: branches: - iron + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/iron-semi-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.iron.repos' + schedule: # Run every morning to detect flakiness and broken dependencies - cron: '33 1 * * *' diff --git a/.github/workflows/rolling-binary-build.yml b/.github/workflows/rolling-binary-build.yml index 09bcc02b6..b1ee4e2c1 100644 --- a/.github/workflows/rolling-binary-build.yml +++ b/.github/workflows/rolling-binary-build.yml @@ -6,9 +6,29 @@ on: pull_request: branches: - master + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/rolling-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos-not-released.rolling.repos' push: branches: - master + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/rolling-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos-not-released.rolling.repos' schedule: # Run every morning to detect flakiness and broken dependencies - cron: '03 1 * * *' diff --git a/.github/workflows/rolling-check-docs.yml b/.github/workflows/rolling-check-docs.yml new file mode 100644 index 000000000..144ea6f5b --- /dev/null +++ b/.github/workflows/rolling-check-docs.yml @@ -0,0 +1,23 @@ +name: Rolling Check Docs + +on: + workflow_dispatch: + pull_request: + branches: + - master + paths: + - '**.rst' + - '.github/workflows/rolling-check-docs.yml' + + +jobs: + check-docs-rolling: + name: Check Docs + uses: ros-controls/control.ros.org/.github/workflows/reusable-sphinx-check-single-version.yml@rolling + with: + ROS2_CONTROL_DEMOS_PR: ${{ github.ref }} + check-docs-jazzy: + name: Check Docs + uses: ros-controls/control.ros.org/.github/workflows/reusable-sphinx-check-single-version.yml@jazzy + with: + ROS2_CONTROL_DEMOS_PR: ${{ github.ref }} diff --git a/.github/workflows/rolling-docker-build.yaml b/.github/workflows/rolling-docker-build.yaml index bd056a7ac..8f060708c 100644 --- a/.github/workflows/rolling-docker-build.yaml +++ b/.github/workflows/rolling-docker-build.yaml @@ -5,9 +5,31 @@ on: pull_request: branches: - master + paths: + - '**.hpp' + - '**.cpp' + - Dockerfile/** + - '.github/workflows/rolling-docker-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.rolling.repos' push: branches: - master + paths: + - '**.hpp' + - '**.cpp' + - Dockerfile/** + - '.github/workflows/rolling-docker-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.rolling.repos' schedule: # Run every morning to detect broken dependencies - cron: '50 1 * * *' diff --git a/.github/workflows/rolling-semi-binary-build.yml b/.github/workflows/rolling-semi-binary-build.yml index 6277fe6d4..ff3d0788a 100644 --- a/.github/workflows/rolling-semi-binary-build.yml +++ b/.github/workflows/rolling-semi-binary-build.yml @@ -5,9 +5,29 @@ on: pull_request: branches: - master + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/rolling-semi-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.rolling.repos' push: branches: - master + paths: + - '**.hpp' + - '**.cpp' + - '.github/workflows/rolling-semi-binary-build.yml' + - '**/package.xml' + - '**/CMakeLists.txt' + - '**.xacro' + - '**.py' + - '**.yaml' + - 'ros2_control_demos.rolling.repos' schedule: # Run every morning to detect flakiness and broken dependencies - cron: '33 1 * * *'