-
Notifications
You must be signed in to change notification settings - Fork 13
73 lines (66 loc) · 1.83 KB
/
apv.yaml
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
63
64
65
66
67
68
69
70
71
72
73
name: Manage Apv
on:
workflow_dispatch:
inputs:
key:
required: true
description: 'Key env name'
default: 'main'
type: choice
options:
- main-odin
- main-heimdall
- main-thor
- internal-odin
- internal-heimdall
- internal-thor
number:
required: true
description: 'Apv number (e.g. 100310)'
dir-name:
required: true
description: 'Dir name'
default: '9c-main'
type: choice
options:
- 9c-internal
- 9c-main
file-name:
required: true
description: 'Network environment'
default: 'heimdall'
type: choice
options:
- general
- 9c-network
- heimdall
- thor
jobs:
manage-apv:
runs-on: ubuntu-20.04
environment:
name: ${{ github.event.inputs.key }}
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
python-version: 3.10.13
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"
- run: dotnet tool install -g Libplanet.Tools
- run: |
python -m pip install -r requirements.txt
flit install
name: install dependencies
working-directory: ./scripts
- run: planet key import --passphrase ${{ secrets.KEY_PASSPHRASE }} ${{ secrets.KEY_PRIVATE }}
name: Import pk
- name: Update Apv
run: |
python cli.py update-apv ${{ github.event.inputs.number }} ${{ github.event.inputs.dir-name }} ${{ github.event.inputs.file-name }}
working-directory: ./scripts
env:
GITHUB_TOKEN: ${{ secrets.P_GITHUB_TOKEN }}
KEY_PASSPHRASE: ${{ secrets.KEY_PASSPHRASE }}
KEY_ADDRESS: ${{ secrets.KEY_ADDRESS }}