Fixed the code snippet in the Update State From Tools tutorial (#2752) #3662
This file contains 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: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
file-size-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v44 | |
- name: Filter by size | |
# TODO: roll back the web voyager hack | |
run: | | |
large_added_files=$(find ${{ steps.changed-files.outputs.added_files }} -maxdepth 0 -size +1M | grep -v "web_voyager" || true) | |
if [ -n "$large_added_files" ]; then | |
echo "Large files added: $large_added_files" | |
echo "# Large files added:" >> $GITHUB_STEP_SUMMARY | |
echo "$large_added_files" >> $GITHUB_STEP_SUMMARY | |
exit 1 | |
fi |