From cdc0284b058ff8aa0a6e15a030019e7aabd562b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Poderoso?= <120394830+JesusPoderoso@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:05:28 +0200 Subject: [PATCH] [21302] Fix nightly job (#246) * Refs #21302: Fix nightly job Signed-off-by: JesusPoderoso * Refs #21302: Use selected branch in migging jobs (docs & uncrustify) Signed-off-by: JesusPoderoso --------- Signed-off-by: JesusPoderoso --- .github/workflows/nightly.yml | 13 +++++++------ .github/workflows/reusable-workflow.yml | 12 ++++++++++++ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ee8668b06..41302781e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -11,14 +11,15 @@ jobs: strategy: fail-fast: false matrix: - - custom_version_build: 'v2' - ref: '1.x' - - custom_version_build: 'v3' - ref: 'main' + version: + - fastdds_ref: 'v2' + backend_ref: '1.x' + - fastdds_ref: 'v3' + backend_ref: 'main' name: reusable_tests uses: ./.github/workflows/reusable-workflow.yml with: - custom_version_build: ${{ matrix.custom_version_build }} + custom_version_build: ${{ matrix.version.fastdds_ref }} dependencies_artifact_postfix: '_nightly' - ref: ${{ matrix.ref }} + ref: ${{ matrix.version.backend_ref }} secrets: inherit diff --git a/.github/workflows/reusable-workflow.yml b/.github/workflows/reusable-workflow.yml index cf024ae80..a01c14b30 100644 --- a/.github/workflows/reusable-workflow.yml +++ b/.github/workflows/reusable-workflow.yml @@ -282,6 +282,12 @@ jobs: runs-on: ubuntu-22.04 steps: + - name: Sync repository + uses: eProsima/eProsima-CI/external/checkout@v0 + with: + path: src + ref: ${{ inputs.ref }} + - name: Install libtinyxml in ubuntu uses: eProsima/eProsima-CI/ubuntu/install_apt_packages@v0 with: @@ -309,5 +315,11 @@ jobs: runs-on: ubuntu-22.04 steps: + - name: Sync repository + uses: eProsima/eProsima-CI/external/checkout@v0 + with: + path: src + ref: ${{ inputs.ref }} + - name: Uncrustify uses: eProsima/eProsima-CI/ubuntu/uncrustify@v0