-
Notifications
You must be signed in to change notification settings - Fork 0
/
day.yml
35 lines (31 loc) · 1.1 KB
/
day.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
name: 网易云音乐日推自动创建歌单
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0/3 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 更新为中国时间
run: |
sudo rm -rf /etc/localtime
sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
date
- name: 安装网易云api
run: git clone https://github.com/shanghaobo/NeteaseCloudMusicApi.git
- name: 运行网易云api
run: |
cd NeteaseCloudMusicApi
npm install
nohup node app.js &
- name: 安装并脚本
run: git clone https://github.com/shanghaobo/NeteaseCloudMusicDay.git
- name: 设置api
run: echo "api='http://127.0.0.1:3000'" >> NeteaseCloudMusicDay/config.py
- name: 设置网易云音乐登录账号
run: echo "phone='16250696000'" >> NeteaseCloudMusicDay/config.py
- name: 设置网易云音乐登录密码
run: echo "password='men851103'" >> NeteaseCloudMusicDay/config.py
- name: 运行脚本
run: python3 NeteaseCloudMusicDay/main2.py