Skip to content

Commit 95abfeb

Browse files
committed
.
1 parent c8830d1 commit 95abfeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/dist-files-size-diff.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
set -e
4646
4747
git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
48+
git checkout ${{ github.base_ref }}
4849
4950
FILES=$(find src -mindepth 2 -path '*/assets/dist/*' \( -name "*.js" -o -name "*.css" \) -not \( -path '*/tests/*' -o -path '*/public/*' -o -path '*/vendor/*' \) | sort | while read -r file; do
5051
echo "{\"$file\": {\"size\": $(wc -c < "$file"), \"size_gz\": $(gzip -c "$file" | wc -c), \"size_brotli\": $(brotli -c "$file" | wc -c)}}"
@@ -63,7 +64,7 @@ jobs:
6364
script: |
6465
const { main } = await import('${{ github.workspace }}/.github/generate-dist-files-size-diff.mjs')
6566
66-
return await(main())
67+
return await main()
6768
6869
- name: Comment on the pull request (if any failure)
6970
if: ${{ failure() }}

0 commit comments

Comments
 (0)