-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
59 lines (59 loc) · 2.18 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "Upload components"
description: "Upload components to Espressif IDF component registry"
branding:
icon: upload
color: red
inputs:
api_token:
description: "API Token for the component registry"
required: true
namespace:
description: "Component namespace"
required: true
directories:
description: "Semicolon separated list of directories with components to upload"
required: false
name:
description: "Name of the component. Required, if `directories` are not set.
If `directories` contain more than 1 location,
the name of the component directory is used instead and `name` is ignored."
required: false
version:
description: "Version of the component, if not specified in the manifest. Can be a semantic version or `git` for getting version from git tag."
required: false
service_url:
description: "Component registry API endpoint"
deprecationMessage: "Please use 'registry_url'."
required: false
registry_url:
description: "Component registry endpoint"
required: false
skip_pre_release:
description: "Flag to skip pre-release versions. Set it to any non-empty string to skip pre-release versions."
required: false
dry_run:
description: "Upload component for validation without creating a version in the registry."
required: false
repository_url:
description: "URL of the repository where component is located"
required: false
default: ${{ github.repositoryUrl }}
commit_sha:
description: "Git commit SHA of the the component version"
required: false
default: ${{ github.sha }}
runs:
using: "docker"
image: "Dockerfile"
env:
COMPONENTS_DIRECTORIES: ${{ inputs.directories }}
COMPONENTS_NAMESPACE: ${{ inputs.namespace }}
COMPONENT_NAME: ${{ inputs.name }}
COMPONENT_VERSION: ${{ inputs.version }}
IDF_COMPONENT_API_TOKEN: ${{ inputs.api_token }}
DEPRECATED_IDF_COMPONENT_REGISTRY_URL: ${{ inputs.service_url }}
IDF_COMPONENT_REGISTRY_URL: ${{ inputs.registry_url }}
SKIP_PRE_RELEASE: ${{ inputs.skip_pre_release }}
DRY_RUN: ${{ inputs.dry_run }}
REPOSITORY_URL: ${{ inputs.repository_url }}
REPOSITORY_COMMIT_SHA: ${{ inputs.commit_sha }}