Skip to content

Commit

Permalink
Fix nightly workflow adding refs (#114)
Browse files Browse the repository at this point in the history
* Fix nightly workflow adding refs

Signed-off-by: Raul Sanchez-Mateos <[email protected]>

* Use input ref for checkout·

Signed-off-by: Raul Sanchez-Mateos <[email protected]>

---------

Signed-off-by: Raul Sanchez-Mateos <[email protected]>
  • Loading branch information
rsanchez15 authored May 17, 2024
1 parent 522ec99 commit e0edd13
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ jobs:

reusable_tests_v2:
name: reusable_tests_v2
uses: eProsima/dev-utils/.github/workflows/reusable-workflow.yml@0.x
uses: ./.github/workflows/reusable-workflow.yml
with:
custom_version_build: 'v2'
dependencies_artifact_postfix: '_nightly'
ref: '0.x'
secrets: inherit

reusable_tests_v3:
name: reusable_tests_v3
uses: eProsima/dev-utils/.github/workflows/reusable-workflow.yml@main
uses: ./.github/workflows/reusable-workflow.yml
with:
custom_version_build: 'v3'
dependencies_artifact_postfix: '_nightly'
ref: 'main'
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ on:
type: string
default: '_nightly'

ref:
description: >
The branch or tag name to checkout.
required: true
type: string
default: 'main'

env:
code_packages_names: 'cmake_utils cpp_utils py_utils'
cpp_packages_names: 'cmake_utils cpp_utils'
Expand Down Expand Up @@ -87,6 +94,7 @@ jobs:
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src
ref: ${{ inputs.ref }}

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
Expand Down Expand Up @@ -118,6 +126,7 @@ jobs:
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src
ref: ${{ inputs.ref }}

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
Expand Down Expand Up @@ -149,6 +158,7 @@ jobs:
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src
ref: ${{ inputs.ref }}

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
Expand Down Expand Up @@ -177,6 +187,7 @@ jobs:
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src
ref: ${{ inputs.ref }}

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
Expand Down Expand Up @@ -207,6 +218,7 @@ jobs:
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src
ref: ${{ inputs.ref }}

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
Expand Down Expand Up @@ -237,6 +249,7 @@ jobs:
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src
ref: ${{ inputs.ref }}

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ jobs:
with:
custom_version_build: ${{ github.event.inputs.custom_version_build || 'v3' }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || '_nightly' }}
ref: ${{ github.ref }}
secrets: inherit

0 comments on commit e0edd13

Please sign in to comment.