forked from snjyor/bonds_reminder
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (47 loc) · 1.81 KB
/
action.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
name: 'GitHub Actions KZZ Reminder Bot...'
on:
push:
schedule:
- cron: '0 23 * * *'
jobs:
bot:
runs-on: ubuntu-latest
steps:
- name: 'Checkout codes'
uses: actions/checkout@master
- name: 'Pip install ics'
run: pip3 install ics
- name: 'Pip install requests'
run: pip3 install requests
- name: Python Dependency Installation
# You may pin to the exact commit or the version.
# uses: py-actions/py-dependency-install@79cf4055e989c617a0679dd99c84a83b2f347460
uses: py-actions/[email protected]
with:
# Path to requirements.txt file
#path: requirements.txt # optional, default is requirements.txt
# Boolean for pip upgrade prior to the dependency installation (default='true')
update-pip: true # optional, default is true
# Boolean for setuptools install/upgrade prior to the dependency installation (default='true')
update-setuptools: true # optional, default is true
# Boolean for wheel install/upgrade prior to the dependency installation (default='true')
update-wheel: true # optional, default is true
- name: 'Generate ics file'
run: bash ./start.sh
- name: 'Config user email'
run: git config --local user.email "[email protected]"
- name: 'Config user name'
run: git config --local user.name "GitHub Action"
- name: 'Git diff'
run: git diff
- name: 'Git add '
run: git add .
- name: 'Git commit'
run: git commit -m "Add changes" --allow-empty
- name: 'GitHub Push'
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.TOKEN }}
branch: ${{ github.ref }}
- name: 'Print kzz.ics'
run: cat ./kzz.ics