DYN-9600 - Automatically synchronize the Documentation Browser to the currently selected node to reduce clicks, improve discoverability, and keep node help content aligned with user context. #5910
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check file size | |
| on: pull_request | |
| jobs: | |
| check_file_size: | |
| name: Check file size | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Get changed files | |
| id: get_changed_files | |
| uses: tj-actions/changed-files@v46 | |
| with: | |
| write_output_files: true | |
| - name: List changed files | |
| run: | | |
| echo "# Changed Files" >> $GITHUB_STEP_SUMMARY | |
| echo "Files changed - ${{ steps.get_changed_files.outputs.all_changed_files_count }}" >> $GITHUB_STEP_SUMMARY | |
| echo "| File | Size | Check |" >> $GITHUB_STEP_SUMMARY | |
| echo "| :-- | :-- | :-- |" >> $GITHUB_STEP_SUMMARY | |
| for file in $(cat .github/outputs/all_changed_files.txt); do | |
| size=$(ls -lh ${file} | awk '{print $5}') | |
| check=$([[ -n $(find "${file}" -type f -size +50M) ]] && echo "❌" || echo "✅") | |
| echo "| ${file} | ${size} | ${check} |" >> $GITHUB_STEP_SUMMARY | |
| done | |
| - name: Check file size | |
| run: | | |
| for file in $(cat .github/outputs/all_changed_files.txt); do | |
| [[ -n $(find "${file}" -type f -size +50M) ]] && { echo "❌ $file exceeds file size limit"; exit 1; } || echo "✅ $file" | |
| done |