-
Notifications
You must be signed in to change notification settings - Fork 232
56 lines (47 loc) · 1.21 KB
/
debug.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
name: Debug
on:
workflow_dispatch:
inputs:
target:
description: 'target ["arm64", "x64", "mipsel"]'
required: true
default: 'arm64'
type: choice
options:
- arm64
- x64
- mipsel
env:
TZ: Asia/Shanghai
jobs:
debug:
runs-on: ubuntu-latest
name: Debug
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: 'apps'
- name: Import Env
env:
MATRIX_TARGET: ${{ github.event.inputs.target }}
run: cat apps/.github/workflows/${MATRIX_TARGET}.env >> "$GITHUB_ENV"
- name: Download ddnsto
run: |
wget -O /tmp/ddnsto https://fw.koolcenter.com/binary/ddnsto/linux/ddnsto.amd64
chmod 755 /tmp/ddnsto
- name: Configure password
run: |
echo "### Update user: $USER password ###"
echo -e "password\npassword" | sudo passwd "$USER"
- name: Tmux
run: |
tmux new-session -d -s tmux || true
- name: Print info
run: |
ip addr
- name: Run ddnsto
env:
DDNSTO_TOKEN: ${{ secrets.DDNSTO_TOKEN }}
run: |
/tmp/ddnsto -u $DDNSTO_TOKEN