-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (56 loc) · 1.48 KB
/
main.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
60
61
62
permissions:
contents: read
name: Download and Mirror packages from anaconda
on:
workflow_dispatch:
inputs:
channel:
description: 'Channel to be mirrored. Default is "conda-forge"'
default: 'conda-forge'
required: false
type: string
package:
description: 'Package to be mirrored. Enter "all" if want to mirror all packages of the channel'
required: true
type: string
workers:
description: 'How many (python) workers to use. Default is 4'
required: true
default: "4"
type: string
timeout:
description: 'Timeout in milliseconds. Default is 700'
required: true
default: "700"
type: string
defaults:
run:
working-directory: ./
jobs:
call-mirror-workflow:
# as advised by github!
permissions:
contents: read
strategy:
max-parallel: 12
matrix:
subdir:
- linux-64
- osx-64
- osx-arm64
- win-64
- linux-aarch64
- linux-ppc64le
- noarch
fail-fast: false
uses: channel-mirrors/mirrormirror/.github/workflows/run_mirror.yml@main
with:
channel: ${{ github.event.inputs.channel }}
package: ${{ github.event.inputs.package }}
subdir: ${{ matrix.subdir }}
registry: ghcr.io/channel-mirrors
workers: 4
timeout: 500
ORAS_USER: "channel-mirrors"
secrets:
ORAS_PASS: ${{ secrets.GHA_PAT }}