diff --git a/.github/workflows/check-large-files.yml b/.github/workflows/check-large-files.yml new file mode 100644 index 00000000..73f6cdb7 --- /dev/null +++ b/.github/workflows/check-large-files.yml @@ -0,0 +1,21 @@ +name: Check for Large Files + +on: push + +jobs: + check-large-files: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Check File Sizes + run: | + max_size=$((2 * 1024 * 1024 * 1024)) + for file in $(git ls-tree -r HEAD --name-only); do + size=$(stat --printf="%s" "$file") + if [ "$size" -gt "$max_size" ]; then + echo "Error: $file exceeds 2GB." + exit 1 + fi + done diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..884c6435 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "github.vscode-github-actions" + ] +} \ No newline at end of file