Skip to content

Commit e0edd13

Browse files
authored
Fix nightly workflow adding refs (#114)
* Fix nightly workflow adding refs Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Use input ref for checkout· Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> --------- Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
1 parent 522ec99 commit e0edd13

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ jobs:
99

1010
reusable_tests_v2:
1111
name: reusable_tests_v2
12-
uses: eProsima/dev-utils/.github/workflows/reusable-workflow.yml@0.x
12+
uses: ./.github/workflows/reusable-workflow.yml
1313
with:
1414
custom_version_build: 'v2'
1515
dependencies_artifact_postfix: '_nightly'
16+
ref: '0.x'
1617
secrets: inherit
1718

1819
reusable_tests_v3:
1920
name: reusable_tests_v3
20-
uses: eProsima/dev-utils/.github/workflows/reusable-workflow.yml@main
21+
uses: ./.github/workflows/reusable-workflow.yml
2122
with:
2223
custom_version_build: 'v3'
2324
dependencies_artifact_postfix: '_nightly'
25+
ref: 'main'
2426
secrets: inherit

.github/workflows/reusable-workflow.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ on:
5656
type: string
5757
default: '_nightly'
5858

59+
ref:
60+
description: >
61+
The branch or tag name to checkout.
62+
required: true
63+
type: string
64+
default: 'main'
65+
5966
env:
6067
code_packages_names: 'cmake_utils cpp_utils py_utils'
6168
cpp_packages_names: 'cmake_utils cpp_utils'
@@ -87,6 +94,7 @@ jobs:
8794
uses: eProsima/eProsima-CI/external/checkout@v0
8895
with:
8996
path: src
97+
ref: ${{ inputs.ref }}
9098

9199
- name: Download dependencies and install requirements
92100
uses: ./src/.github/actions/project_dependencies
@@ -118,6 +126,7 @@ jobs:
118126
uses: eProsima/eProsima-CI/external/checkout@v0
119127
with:
120128
path: src
129+
ref: ${{ inputs.ref }}
121130

122131
- name: Download dependencies and install requirements
123132
uses: ./src/.github/actions/project_dependencies
@@ -149,6 +158,7 @@ jobs:
149158
uses: eProsima/eProsima-CI/external/checkout@v0
150159
with:
151160
path: src
161+
ref: ${{ inputs.ref }}
152162

153163
- name: Download dependencies and install requirements
154164
uses: ./src/.github/actions/project_dependencies
@@ -177,6 +187,7 @@ jobs:
177187
uses: eProsima/eProsima-CI/external/checkout@v0
178188
with:
179189
path: src
190+
ref: ${{ inputs.ref }}
180191

181192
- name: Download dependencies and install requirements
182193
uses: ./src/.github/actions/project_dependencies
@@ -207,6 +218,7 @@ jobs:
207218
uses: eProsima/eProsima-CI/external/checkout@v0
208219
with:
209220
path: src
221+
ref: ${{ inputs.ref }}
210222

211223
- name: Download dependencies and install requirements
212224
uses: ./src/.github/actions/project_dependencies
@@ -237,6 +249,7 @@ jobs:
237249
uses: eProsima/eProsima-CI/external/checkout@v0
238250
with:
239251
path: src
252+
ref: ${{ inputs.ref }}
240253

241254
- name: Download dependencies and install requirements
242255
uses: ./src/.github/actions/project_dependencies

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ jobs:
3434
with:
3535
custom_version_build: ${{ github.event.inputs.custom_version_build || 'v3' }}
3636
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || '_nightly' }}
37+
ref: ${{ github.ref }}
3738
secrets: inherit

0 commit comments

Comments
 (0)