-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (46 loc) · 1.68 KB
/
AddEnode.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
name: Add enode workflow
on:
workflow_dispatch:
inputs:
type:
description: 'Node type [regular | validator]'
default: ''
required: true
name:
description: 'Node name [<TYP>_<partner>_B_<number_cores>_<memory>_<#node>]'
default: ''
required: true
hosting:
description: 'Hosting info [Hosting provider (Cores/Mem/HDD)]'
default: ''
required: true
enode:
description: 'Full enode address [enode://<ENODE>@<IP>:30303]'
default: ''
required: true
address:
description: 'Address of the node (only for validator nodes) [0x + 40 hex chars, all lower case, eg.: 0xab5801a7d398351b8be11c439e05c5b3259aec9b]'
default: ''
required: false
jobs:
add-enode:
runs-on: ubuntu-latest
env:
TYPE: ${{ github.event.inputs.type }}
NAME: ${{ github.event.inputs.name }}
HOSTING: ${{ github.event.inputs.hosting }}
ENODE: ${{ github.event.inputs.enode }}
ADDRESS: ${{ github.event.inputs.address }}
steps:
- uses: actions/checkout@v3
- name: Check inputs (CheckInputs.sh)
run: chmod +x ./.github/workflows/scripts/CheckInputs.sh && ./.github/workflows/scripts/CheckInputs.sh
- name: Add enode (AddEnode.sh)
run: chmod +x ./.github/workflows/scripts/AddEnode.sh && ./.github/workflows/scripts/AddEnode.sh
- name: Commit files
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add ./*.md ./data/*.json ./directory.*
git commit -m "Added ${{ github.event.inputs.name }} node"
git push