-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
38 lines (31 loc) · 1.09 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 'vcs_import'
description: 'Import required repositories and their versions from a .repos file'
inputs:
vcs_repos_file:
description: '.repos file to import repositories'
required: true
destination_workspace:
description: 'Workspace where the repositories are downloaded'
required: false
default: '${{ github.workspace }}'
skip_existing:
description: 'Skip existing repositories'
required: false
default: 'false'
runs:
using: composite
steps:
- name: Run in ubuntu
uses: eProsima/eProsima-CI/ubuntu/vcs_import@main
if: runner.os == 'Linux' || runner.os == 'macOS'
with:
vcs_repos_file: ${{ inputs.vcs_repos_file }}
destination_workspace: ${{ inputs.destination_workspace }}
skip_existing: ${{ inputs.skip_existing }}
- name: Run in windows
uses: eProsima/eProsima-CI/windows/vcs_import@main
if: runner.os == 'Windows'
with:
vcs_repos_file: ${{ inputs.vcs_repos_file }}
destination_workspace: ${{ inputs.destination_workspace }}
skip_existing: ${{ inputs.skip_existing }}