Skip to content

Commit ec6e3d0

Browse files
committed
test something
1 parent a58a0e1 commit ec6e3d0

1 file changed

Lines changed: 36 additions & 33 deletions

File tree

.github/workflows/update-snowflake-feature-coverage.yml

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
schedule:
55
# "At 00:00 on Sunday."
66
- cron: "0 0 * * 0"
7+
pull_request:
8+
branches:
9+
- main
710
workflow_dispatch:
811

912
jobs:
@@ -19,7 +22,7 @@ jobs:
1922
- name: Setup Python
2023
uses: actions/setup-python@v4
2124
with:
22-
python-version: '3.10'
25+
python-version: '3.11'
2326

2427
- name: Setup Node.js
2528
uses: actions/setup-node@v4
@@ -41,38 +44,38 @@ jobs:
4144
pip install localstack-core lxml requests
4245
python ./etc/coverage.py
4346
44-
- name: Move the generated files
45-
run: |
46-
cd localstack-docs
47-
mv ../snowflake/coverage-features.md src/content/docs/snowflake/feature-coverage.md
48-
mv ../snowflake/coverage-functions.md src/content/docs/snowflake/sql-functions.md
49-
mv ../snowflake/coverage-restapi.md src/content/docs/snowflake/features/rest-api-endpoints.md
47+
# - name: Move the generated files
48+
# run: |
49+
# cd localstack-docs
50+
# mv ../snowflake/coverage-features.md src/content/docs/snowflake/feature-coverage.md
51+
# mv ../snowflake/coverage-functions.md src/content/docs/snowflake/sql-functions.md
52+
# mv ../snowflake/coverage-restapi.md src/content/docs/snowflake/features/rest-api-endpoints.md
5053

51-
- name: Parse SQL functions to JSON
52-
working-directory: localstack-docs
53-
run: node scripts/snowflake/parse-sql-functions.mjs
54+
# - name: Parse SQL functions to JSON
55+
# working-directory: localstack-docs
56+
# run: node scripts/snowflake/parse-sql-functions.mjs
5457

55-
- name: Check for changes
56-
id: check-for-changes
57-
working-directory: localstack-docs
58-
run: |
59-
git add .
60-
if git diff --staged --quiet; then
61-
echo "diff-count=0" >> $GITHUB_OUTPUT
62-
else
63-
echo "diff-count=1" >> $GITHUB_OUTPUT
64-
fi
58+
# - name: Check for changes
59+
# id: check-for-changes
60+
# working-directory: localstack-docs
61+
# run: |
62+
# git add .
63+
# if git diff --staged --quiet; then
64+
# echo "diff-count=0" >> $GITHUB_OUTPUT
65+
# else
66+
# echo "diff-count=1" >> $GITHUB_OUTPUT
67+
# fi
6568

66-
- name: Create PR
67-
uses: peter-evans/create-pull-request@v7
68-
if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }}
69-
with:
70-
path: localstack-docs
71-
title: "Update function coverage documentation"
72-
body: "Automated update of snowflake feature coverage docs"
73-
branch: "snowflake-feature-coverage-updates"
74-
author: "LocalStack Bot <localstack-bot@users.noreply.github.com>"
75-
committer: "LocalStack Bot <localstack-bot@users.noreply.github.com>"
76-
commit-message: "automated update of snowflake feature coverage docs"
77-
token: ${{ secrets.PRO_ACCESS_TOKEN }}
78-
reviewers: hovaesco, quetzalliwrites
69+
# - name: Create PR
70+
# uses: peter-evans/create-pull-request@v7
71+
# if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }}
72+
# with:
73+
# path: localstack-docs
74+
# title: "Update function coverage documentation"
75+
# body: "Automated update of snowflake feature coverage docs"
76+
# branch: "snowflake-feature-coverage-updates"
77+
# author: "LocalStack Bot <localstack-bot@users.noreply.github.com>"
78+
# committer: "LocalStack Bot <localstack-bot@users.noreply.github.com>"
79+
# commit-message: "automated update of snowflake feature coverage docs"
80+
# token: ${{ secrets.PRO_ACCESS_TOKEN }}
81+
# reviewers: hovaesco, quetzalliwrites

0 commit comments

Comments
 (0)