-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.09 KB
/
Copy pathmain.yml
File metadata and controls
48 lines (39 loc) · 1.09 KB
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
name: Update Banners
on:
schedule:
# every hour everyday:D
- cron: 0 * * * *
workflow_dispatch:
permissions:
contents: write
jobs:
update-svg:
runs-on: ubuntu-latest
env:
TZ: Asia/Manila
steps:
- name: checkout this repo
uses: actions/checkout@v6.0.2
- name: setup python
uses: actions/setup-python@v6.2.0
with:
python-version: '3.12'
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: run >:D
run: python main.py
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: get commit message
run: |
COMMITMSG=$(python .github/workflows/commit-msg.py)
echo "COMMIT_MSG=$COMMITMSG" >> $GITHUB_ENV
- name: commit and push
run: |
git config user.name "IMO's Bot"
git config user.email "imo@bot.happyface"
git add .
git commit -m "${{ env.COMMIT_MSG }}" || echo "no changes to commit :]"
git push