From cab77105a4f95e448606bf2f24a61c31fbd8a66d Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Thu, 1 Feb 2024 13:42:16 +0000 Subject: [PATCH 1/2] Fix ref for scheduled pipelines --- .github/workflows/humble-debian-build.yml | 1 + .github/workflows/humble-rhel-binary-build.yml | 1 + .github/workflows/iron-debian-build.yml | 1 + .github/workflows/iron-rhel-binary-build.yml | 2 +- .github/workflows/rolling-rhel-binary-build.yml | 3 ++- 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/humble-debian-build.yml b/.github/workflows/humble-debian-build.yml index 0db1f58210..a3b070355c 100644 --- a/.github/workflows/humble-debian-build.yml +++ b/.github/workflows/humble-debian-build.yml @@ -20,6 +20,7 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_control + ref: ${{ github.event_name == 'schedule' && 'humble' || '' }} - name: Build and test shell: bash run: | diff --git a/.github/workflows/humble-rhel-binary-build.yml b/.github/workflows/humble-rhel-binary-build.yml index ed37092520..8ee66ca210 100644 --- a/.github/workflows/humble-rhel-binary-build.yml +++ b/.github/workflows/humble-rhel-binary-build.yml @@ -19,6 +19,7 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_control + ref: ${{ github.event_name == 'schedule' && 'humble' || '' }} - name: Install dependencies run: | rosdep update diff --git a/.github/workflows/iron-debian-build.yml b/.github/workflows/iron-debian-build.yml index 405e4f9135..75714c5c2a 100644 --- a/.github/workflows/iron-debian-build.yml +++ b/.github/workflows/iron-debian-build.yml @@ -20,6 +20,7 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_control + ref: ${{ github.event_name == 'schedule' && 'iron' || '' }} - name: Build and test shell: bash run: | diff --git a/.github/workflows/iron-rhel-binary-build.yml b/.github/workflows/iron-rhel-binary-build.yml index fc48bd80ea..119ba2492a 100644 --- a/.github/workflows/iron-rhel-binary-build.yml +++ b/.github/workflows/iron-rhel-binary-build.yml @@ -8,7 +8,6 @@ on: # Run every day to detect flakiness and broken dependencies - cron: '03 1 * * *' - jobs: iron_rhel_binary: name: Iron RHEL binary build @@ -20,6 +19,7 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_control + ref: ${{ github.event_name == 'schedule' && 'iron' || '' }} - name: Install dependencies run: | rosdep update diff --git a/.github/workflows/rolling-rhel-binary-build.yml b/.github/workflows/rolling-rhel-binary-build.yml index 06a5411c24..dcb182a9df 100644 --- a/.github/workflows/rolling-rhel-binary-build.yml +++ b/.github/workflows/rolling-rhel-binary-build.yml @@ -8,7 +8,6 @@ on: # Run every day to detect flakiness and broken dependencies - cron: '03 1 * * *' - jobs: rolling_rhel_binary: name: Rolling RHEL binary build @@ -20,6 +19,8 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_control + # default behavior is correct on master branch + # ref: ${{ github.event_name == 'schedule' && 'master' || '' }} - name: Install dependencies run: | rosdep update From 9a6e5264d31fc61126ef637622ba519c0a65e12c Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Thu, 1 Feb 2024 17:25:59 +0000 Subject: [PATCH 2/2] Fix ref for scheduled pipelines (also for rolling) --- .github/workflows/rolling-debian-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/rolling-debian-build.yml b/.github/workflows/rolling-debian-build.yml index 098af45029..b94fd800f9 100644 --- a/.github/workflows/rolling-debian-build.yml +++ b/.github/workflows/rolling-debian-build.yml @@ -20,6 +20,8 @@ jobs: - uses: actions/checkout@v4 with: path: src/ros2_control + # default behavior is correct on master branch + # ref: ${{ github.event_name == 'schedule' && 'master' || '' }} - name: Build and test shell: bash run: |