-
Notifications
You must be signed in to change notification settings - Fork 81
33 lines (30 loc) · 882 Bytes
/
update.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
# This is a basic workflow to help you get started with Actions
name: 'Update Bot'
on:
workflow_dispatch:
schedule:
- cron: '10 10 */2 * *'
jobs:
bot:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Ubuntu'
uses: actions/checkout@v1
- name: 'Set up Python'
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: 'Install dependencies'
run: pip install requests
- name: 'update'
run: python3 ./update.py
- name: 'commit'
run: |
git config --global user.email 30486766+entr0pia@users.noreply.github.com
git config --global user.name entr0pia
git add *
git commit -m "update by bot"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}