-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (35 loc) · 1.1 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
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
node_inl:
description: 'Custom net_node.inl url'
required: false
default: 'https://raw.githubusercontent.com/monero-project/monero/master/src/p2p/net_node.inl'
jobs:
check_seed_nodes:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Check tor/ipv4 seed nodes
run: |
sudo apt install tor -y
pip install PySocks
cd py_levin
mv ../check_seed_nodes.py .
python3 check_seed_nodes.py ${{ github.event.inputs.node_inl }}
- name: Commit files
run: |
git add readme.md
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "codeberg"
git commit -m "Update node status"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}