Skip to content

Commit 2e138f7

Browse files
committed
fix
1 parent f1790b7 commit 2e138f7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ jobs:
4040
mv coverage-features.md src/content/docs/snowflake/features/index.md
4141
mv coverage-functions.md src/content/docs/snowflake/sql-functions.md
4242
43+
- name: Check for changes
44+
id: check-for-changes
45+
working-directory: localstack-docs
46+
run: |
47+
# Check if there are changed files and store the result in resources/diff-check.log
48+
# Check against the PR branch if it exists, otherwise against the main
49+
# Store the result in resources/diff-check.log and store the diff count in the GitHub Action output "diff-count"
50+
mkdir -p resources
51+
(git diff --name-only origin/snowflake-feature-coverage-updates src/content/docs/snowflake/features/index.md src/content/docs/snowflake/sql-functions.md 2>/dev/null || git diff --name-only origin/${{ github.event.inputs.targetBranch || 'main' }} src/content/docs/snowflake/features/index.md src/content/docs/snowflake/sql-functions.md 2>/dev/null) | tee resources/diff-check.log
52+
echo "diff-count=$(cat resources/diff-check.log | wc -l)" >> $GITHUB_OUTPUT
53+
cat resources/diff-check.log
54+
4355
- name: Create PR
4456
uses: peter-evans/create-pull-request@v7
4557
if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }}

0 commit comments

Comments
 (0)