File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 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 != '' }}
You can’t perform that action at this time.
0 commit comments