From ec6e3d054517f95db319352bc09017bb7d171760 Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Mon, 4 May 2026 13:00:00 +0530 Subject: [PATCH 1/2] test something --- .../update-snowflake-feature-coverage.yml | 69 ++++++++++--------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/.github/workflows/update-snowflake-feature-coverage.yml b/.github/workflows/update-snowflake-feature-coverage.yml index 39cafab9..d1ca8860 100644 --- a/.github/workflows/update-snowflake-feature-coverage.yml +++ b/.github/workflows/update-snowflake-feature-coverage.yml @@ -4,6 +4,9 @@ on: schedule: # "At 00:00 on Sunday." - cron: "0 0 * * 0" + pull_request: + branches: + - main workflow_dispatch: jobs: @@ -19,7 +22,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Setup Node.js uses: actions/setup-node@v4 @@ -41,38 +44,38 @@ jobs: pip install localstack-core lxml requests python ./etc/coverage.py - - name: Move the generated files - run: | - cd localstack-docs - mv ../snowflake/coverage-features.md src/content/docs/snowflake/feature-coverage.md - mv ../snowflake/coverage-functions.md src/content/docs/snowflake/sql-functions.md - mv ../snowflake/coverage-restapi.md src/content/docs/snowflake/features/rest-api-endpoints.md + # - name: Move the generated files + # run: | + # cd localstack-docs + # mv ../snowflake/coverage-features.md src/content/docs/snowflake/feature-coverage.md + # mv ../snowflake/coverage-functions.md src/content/docs/snowflake/sql-functions.md + # mv ../snowflake/coverage-restapi.md src/content/docs/snowflake/features/rest-api-endpoints.md - - name: Parse SQL functions to JSON - working-directory: localstack-docs - run: node scripts/snowflake/parse-sql-functions.mjs + # - name: Parse SQL functions to JSON + # working-directory: localstack-docs + # run: node scripts/snowflake/parse-sql-functions.mjs - - name: Check for changes - id: check-for-changes - working-directory: localstack-docs - run: | - git add . - if git diff --staged --quiet; then - echo "diff-count=0" >> $GITHUB_OUTPUT - else - echo "diff-count=1" >> $GITHUB_OUTPUT - fi + # - name: Check for changes + # id: check-for-changes + # working-directory: localstack-docs + # run: | + # git add . + # if git diff --staged --quiet; then + # echo "diff-count=0" >> $GITHUB_OUTPUT + # else + # echo "diff-count=1" >> $GITHUB_OUTPUT + # fi - - name: Create PR - uses: peter-evans/create-pull-request@v7 - if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }} - with: - path: localstack-docs - title: "Update function coverage documentation" - body: "Automated update of snowflake feature coverage docs" - branch: "snowflake-feature-coverage-updates" - author: "LocalStack Bot " - committer: "LocalStack Bot " - commit-message: "automated update of snowflake feature coverage docs" - token: ${{ secrets.PRO_ACCESS_TOKEN }} - reviewers: hovaesco, quetzalliwrites + # - name: Create PR + # uses: peter-evans/create-pull-request@v7 + # if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }} + # with: + # path: localstack-docs + # title: "Update function coverage documentation" + # body: "Automated update of snowflake feature coverage docs" + # branch: "snowflake-feature-coverage-updates" + # author: "LocalStack Bot " + # committer: "LocalStack Bot " + # commit-message: "automated update of snowflake feature coverage docs" + # token: ${{ secrets.PRO_ACCESS_TOKEN }} + # reviewers: hovaesco, quetzalliwrites From cd74e43bcbdeee658795c5592b5240e4438f2f33 Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Mon, 4 May 2026 13:08:03 +0530 Subject: [PATCH 2/2] remove uncommented parts --- .../update-snowflake-feature-coverage.yml | 67 +++++++++---------- 1 file changed, 32 insertions(+), 35 deletions(-) diff --git a/.github/workflows/update-snowflake-feature-coverage.yml b/.github/workflows/update-snowflake-feature-coverage.yml index d1ca8860..e3a1577e 100644 --- a/.github/workflows/update-snowflake-feature-coverage.yml +++ b/.github/workflows/update-snowflake-feature-coverage.yml @@ -4,9 +4,6 @@ on: schedule: # "At 00:00 on Sunday." - cron: "0 0 * * 0" - pull_request: - branches: - - main workflow_dispatch: jobs: @@ -44,38 +41,38 @@ jobs: pip install localstack-core lxml requests python ./etc/coverage.py - # - name: Move the generated files - # run: | - # cd localstack-docs - # mv ../snowflake/coverage-features.md src/content/docs/snowflake/feature-coverage.md - # mv ../snowflake/coverage-functions.md src/content/docs/snowflake/sql-functions.md - # mv ../snowflake/coverage-restapi.md src/content/docs/snowflake/features/rest-api-endpoints.md + - name: Move the generated files + run: | + cd localstack-docs + mv ../snowflake/coverage-features.md src/content/docs/snowflake/feature-coverage.md + mv ../snowflake/coverage-functions.md src/content/docs/snowflake/sql-functions.md + mv ../snowflake/coverage-restapi.md src/content/docs/snowflake/features/rest-api-endpoints.md - # - name: Parse SQL functions to JSON - # working-directory: localstack-docs - # run: node scripts/snowflake/parse-sql-functions.mjs + - name: Parse SQL functions to JSON + working-directory: localstack-docs + run: node scripts/snowflake/parse-sql-functions.mjs - # - name: Check for changes - # id: check-for-changes - # working-directory: localstack-docs - # run: | - # git add . - # if git diff --staged --quiet; then - # echo "diff-count=0" >> $GITHUB_OUTPUT - # else - # echo "diff-count=1" >> $GITHUB_OUTPUT - # fi + - name: Check for changes + id: check-for-changes + working-directory: localstack-docs + run: | + git add . + if git diff --staged --quiet; then + echo "diff-count=0" >> $GITHUB_OUTPUT + else + echo "diff-count=1" >> $GITHUB_OUTPUT + fi - # - name: Create PR - # uses: peter-evans/create-pull-request@v7 - # if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }} - # with: - # path: localstack-docs - # title: "Update function coverage documentation" - # body: "Automated update of snowflake feature coverage docs" - # branch: "snowflake-feature-coverage-updates" - # author: "LocalStack Bot " - # committer: "LocalStack Bot " - # commit-message: "automated update of snowflake feature coverage docs" - # token: ${{ secrets.PRO_ACCESS_TOKEN }} - # reviewers: hovaesco, quetzalliwrites + - name: Create PR + uses: peter-evans/create-pull-request@v7 + if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }} + with: + path: localstack-docs + title: "Update function coverage documentation" + body: "Automated update of snowflake feature coverage docs" + branch: "snowflake-feature-coverage-updates" + author: "LocalStack Bot " + committer: "LocalStack Bot " + commit-message: "automated update of snowflake feature coverage docs" + token: ${{ secrets.PRO_ACCESS_TOKEN }} + reviewers: hovaesco, quetzalliwrites