-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
39 lines (39 loc) · 1.42 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
name: 'Add Private Registry'
description: 'Add a private Julia package registry'
inputs:
### Required inputs:
juliahub_token_encoded:
description: 'Base64-encoded JuliaHub token. This should be kept secret.'
required: true
private_registry_name:
description: 'Name of the private registry.'
required: true
private_registry_uuid:
description: 'UUID of the private registry.'
required: true
### Optional inputs:
install_general_registry:
description: 'Whether or not the General registry should also be installed. Default: true'
required: false
default: 'true'
julia:
description: 'Location of the Julia binary to run.'
required: false
default: 'julia'
runs:
using: 'composite'
steps:
- name: Create the `auth.toml` file
run: ${{ inputs.julia }} ${GITHUB_ACTION_PATH:?}/lib/create_auth_toml.jl
shell: bash
env:
JULIA_PKG_SERVER: ${{ env.JULIA_PKG_SERVER }}
JULIAHUB_TOKEN_ENCODED: ${{ inputs.juliahub_token_encoded }}
- name: Add the private registry and the General registry
run: ${{ inputs.julia }} ${GITHUB_ACTION_PATH:?}/lib/add_registries.jl
shell: bash
env:
JULIA_PKG_SERVER: ${{ env.JULIA_PKG_SERVER }}
PRIVATE_REGISTRY_NAME: ${{ inputs.private_registry_name }}
PRIVATE_REGISTRY_UUID: ${{ inputs.private_registry_uuid }}
INSTALL_GENERAL_REGISTRY: ${{ inputs.install_general_registry }}