1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-09-29 04:04:11 +08:00
NeoNetwork/.github/workflows/roa.yml

39 lines
923 B
YAML
Raw Normal View History

2020-07-21 00:22:03 +08:00
name: Generator ROA
2020-05-01 15:06:14 +08:00
on:
push:
2020-05-23 19:00:02 +08:00
branches: [master]
2020-05-01 15:45:25 +08:00
schedule:
2020-05-23 19:00:02 +08:00
- cron: "0 6 * * 1"
2020-05-01 15:06:14 +08:00
jobs:
build:
name: Generate ROA
if: "!contains(github.event.head_commit.message, '[skip ci]')"
2020-06-04 11:53:59 +08:00
runs-on: ubuntu-20.04
2020-05-01 15:06:14 +08:00
steps:
2020-07-21 00:34:05 +08:00
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: NeoCloud/NeoNetwork-ROA
ssh-key: ${{ secrets.KEY }}
path: generated
2020-05-01 15:06:14 +08:00
2020-05-23 19:00:02 +08:00
- name: Install dependencies
run: |
sudo apt update -qq
2020-07-21 00:20:25 +08:00
sudo apt install -y git python3 python3-venv openssh-client
2020-05-01 15:06:14 +08:00
2020-07-21 00:19:10 +08:00
- name: Run ROA script
run: .scripts/generate-roa.sh
2020-05-01 15:06:14 +08:00
2020-07-21 00:19:10 +08:00
- name: Push to NeoCloud/NeoNetwork-ROA
2020-07-21 00:34:05 +08:00
run: |
cd generated
git config user.name "neonet roa bot"
git config user.email "bot@github.com"
git commit -m "Generated at $(TZ='UTC' date +%Y%m%d-%H%M%S.%N)"
git push