-
Notifications
You must be signed in to change notification settings - Fork 85
44 lines (42 loc) · 1.03 KB
/
apple.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
name: Build README
on:
schedule:
# - cron: '0 */2 * * *'
- cron: '*/30 * * * *'
workflow_dispatch:
inputs:
unconditional-invoking:
description: '更新ReadMe'
type: boolean
required: true
default: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- uses: actions/cache@v3
name: Configure pip caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python -m pip install -r requirements.txt
- name: Update README
env:
urls: ${{ secrets.urls }}
run: |-
python apple.py
cat README.md
- name: Commit
uses: EndBug/add-and-commit@v9
with:
message: '更新:小火箭账号'