-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.33 KB
/
update-coverage-docs.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
50
name: Update function coverage docs
on:
schedule:
# “At 00:00 on Sunday.”
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
update-function-coverage:
name: Update function coverage docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: snowflake-docs
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Checkout private tools
uses: actions/checkout@v4
with:
repository: localstack/snowflake
path: snowflake
token: ${{ secrets.GH_TOKEN }}
- name: Run the script
run: |
cd snowflake-docs
pip install localstack lxml requests
python ../snowflake/etc/coverage.py
- name: Move the generated files
run: |
cd snowflake-docs
mv coverage-features.md content/en/references/coverage-features/index.md
mv coverage-functions.md content/en/references/coverage-functions/index.md
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: 'LocalStack Bot'
author_email: [email protected]
message: 'Updated function coverage docs'
cwd: snowflake-docs
add: 'content/'