Skip to content

Commit 12656ce

Browse files
authored
add snowflake feature & sql coverage automation (#36)
* add snowflake feature & sql coverage automation * fixing * fixing * fixing * last push
1 parent af5f30f commit 12656ce

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Update function coverage docs
2+
3+
on:
4+
schedule:
5+
# “At 00:00 on Sunday.”
6+
- cron: "0 0 * * 0"
7+
workflow_dispatch:
8+
9+
jobs:
10+
update-function-coverage:
11+
name: Update function coverage docs
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
path: localstack-docs
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.10'
23+
24+
- name: Checkout private tools
25+
uses: actions/checkout@v4
26+
with:
27+
repository: localstack/snowflake
28+
path: snowflake
29+
token: ${{ secrets.GH_TOKEN }}
30+
31+
- name: Run the script
32+
run: |
33+
cd localstack-docs
34+
pip install localstack lxml requests
35+
python ../snowflake/etc/coverage.py
36+
37+
- name: Move the generated files
38+
run: |
39+
cd localstack-docs
40+
mv coverage-features.md src/content/docs/snowflake/features/index.md
41+
mv coverage-functions.md src/content/docs/snowflake/sql-functions.md
42+
43+
- name: Commit changes
44+
uses: EndBug/add-and-commit@v9
45+
with:
46+
author_name: 'LocalStack Bot'
47+
author_email: [email protected]
48+
message: 'Updated function coverage docs'
49+
cwd: localstack-docs
50+
add: 'src/content/'

0 commit comments

Comments
 (0)