Skip to content

Build your personal knowledge base with Trilium Notes

chore(ci): display size in MB

Elian Doran8730a99aeb76
diff --git a/.github/actions/report-size/action.yml b/.github/actions/report-size/action.yml
index 739fbc08c8..e39b8bab33 100644
--- a/.github/actions/report-size/action.yml
+++ b/.github/actions/report-size/action.yml
@@ -14,6 +14,13 @@ inputs:
description: 'Report only different sizes'
required: false
default: 'false'
+ filter:
+ description: 'Regex filter based on file path'
+ required: false
+ unit:
+ description: 'Size unit'
+ required: false
+ default: 'KB'
# Comment inputs
comment:
@@ -50,6 +57,8 @@ runs:
with:
paths: ${{ inputs.paths }}
onlyDiff: ${{ inputs.onlyDiff }}
+ filter: ${{ inputs.filter }}
+ unit: ${{ inputs.unit }}
# Post github action summary
- name: Post summary
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index 58f51a2b20..126bf3def4 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -49,7 +49,7 @@ jobs:
onlyDiff: 'true'
branch: 'develop'
header: 'Size report'
- append: true
+ size: "MB"
ghToken: ${{ secrets.GITHUB_TOKEN }}
report-server-size:
name: Report server size
@@ -80,6 +80,7 @@ jobs:
branch: 'develop'
header: 'Size report'
append: true
+ size: "MB"
ghToken: ${{ secrets.GITHUB_TOKEN }}
test_dev: