-
Notifications
You must be signed in to change notification settings - Fork 36
33 lines (31 loc) · 824 Bytes
/
summary.yml
File metadata and controls
33 lines (31 loc) · 824 Bytes
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
name: Update summary.json
on:
workflow_dispatch:
schedule:
- cron: '0 0 */2 * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
ssh-key: ${{ secrets.DEPLOY }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install dependencies
run: pip install requests
- name: Run script
run: |
python summary.py -u
python summary.py -p
- name: Commit and push if changed
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add summary.json summary-data.json
if ! git diff-index --quiet HEAD; then
git commit -m "Update summary.json"
git push
fi