-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.1 KB
/
replace_readme.yml
File metadata and controls
44 lines (38 loc) · 1.1 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
name: Replace README AND GENERATE SVG
on:
workflow_dispatch:
inputs:
time:
description: 'time list'
required: false
value:
description: 'value list'
required: false
env:
# change env here
GITHUB_NAME: jocs
GITHUB_EMAIL: ransixi@gmail.com
jobs:
sync:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Replace README AND generate SVG
run: |
python main.py $'${{ github.event.inputs.time }}' $'${{ github.event.inputs.value }}'
- name: Push README
run: |
git config --local user.email "${{ env.GITHUB_EMAIL }}"
git config --local user.name "${{ env.GITHUB_NAME }}"
git commit -a -m 'update new heart' || echo "nothing to commit"
git push || echo "nothing to push"