Skip to content

Commit dab1385

Browse files
esciunzipaolajuarezgomezhrvolapeter
authored
Obs (#221)
* update main readme obs add-on * update ATP readme * update instance json * update files * update files * update ssh config * update * update image * update autonomous * update readme * update policies * update policies * dbcs scenario * updates * update diagramas * update diagram * update dbcs scenario * update diagrams * update exacs scenario * update icon * updates * updates exacc * minor updates * update icons * update policies * update mds with license * update steps to enable * update files obs * update steps obs * remove space * update readme * update * update files * update atp * update diagram * update atonomous policies * update atp * minor updates security * update readme * update readme * update readme * update readme * Update readme.md test change * update diagramas * updates * add readers policies * updates * update readmes * DB_Erika * er * erika_aftermeeting * update files * udpates add-on * update files * update png names * update policies * reduce duplicate policies * minor updates * update json files * updates * update readme * fp * update Atp diagram * update atp readme * update exacs scenario * updates * add the scope at the begining, unified character and naming convention * ci: fix nested file size checks * ci: name oversized files * update images * update size image * update size image * update size options * update format * remove test_db --------- Co-authored-by: Paola Juárez Gómez <paola.juarez@oracle.com> Co-authored-by: Peter Hrvola <peter.hrvola@oracle.com>
1 parent f8ad156 commit dab1385

78 files changed

Lines changed: 3890 additions & 13 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/check-filesize.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@ jobs:
44
File-Size:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v1
7+
- uses: actions/checkout@v4
88
with:
9-
fetch-depth: 2
10-
- name: check size
9+
fetch-depth: 0
10+
- name: Check changed-file sizes
1111
shell: bash
12+
env:
13+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
14+
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
15+
MAX_BYTES: "1048576"
1216
run: |
13-
CHANGED=`git diff --name-only -r HEAD^1 HEAD`
14-
FAIL=0
15-
while IFS= read -r line; do
16-
SIZE=`find -maxdepth 1 -name "$line" -size +2M`
17-
if [ "$SIZE" ]; then
18-
echo -n "File too large: " `du -h $line`
19-
FAIL=1
20-
fi
21-
done <<< "$CHANGED"
22-
exit $FAIL
17+
failed=0
18+
while IFS= read -r -d '' file; do
19+
size=$(wc -c < "$file")
20+
if (( size > MAX_BYTES )); then
21+
echo "::error file=$file::File too large: $file is $size bytes; maximum is $MAX_BYTES bytes."
22+
failed=1
23+
fi
24+
done < <(git diff --name-only -z --diff-filter=AM "$BASE_SHA" "$HEAD_SHA")
25+
exit "$failed"
Lines changed: 117 additions & 0 deletions
58.1 KB
53.9 KB
342 KB
123 KB
341 KB
71.4 KB
82.1 KB
338 KB

0 commit comments

Comments
 (0)