mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(ci): display size in MB
This commit is contained in:
parent
194f05dc9d
commit
8730a99aeb
9
.github/actions/report-size/action.yml
vendored
9
.github/actions/report-size/action.yml
vendored
@ -14,6 +14,13 @@ inputs:
|
|||||||
description: 'Report only different sizes'
|
description: 'Report only different sizes'
|
||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: 'false'
|
||||||
|
filter:
|
||||||
|
description: 'Regex filter based on file path'
|
||||||
|
required: false
|
||||||
|
unit:
|
||||||
|
description: 'Size unit'
|
||||||
|
required: false
|
||||||
|
default: 'KB'
|
||||||
|
|
||||||
# Comment inputs
|
# Comment inputs
|
||||||
comment:
|
comment:
|
||||||
@ -50,6 +57,8 @@ runs:
|
|||||||
with:
|
with:
|
||||||
paths: ${{ inputs.paths }}
|
paths: ${{ inputs.paths }}
|
||||||
onlyDiff: ${{ inputs.onlyDiff }}
|
onlyDiff: ${{ inputs.onlyDiff }}
|
||||||
|
filter: ${{ inputs.filter }}
|
||||||
|
unit: ${{ inputs.unit }}
|
||||||
|
|
||||||
# Post github action summary
|
# Post github action summary
|
||||||
- name: Post summary
|
- name: Post summary
|
||||||
|
3
.github/workflows/dev.yml
vendored
3
.github/workflows/dev.yml
vendored
@ -49,7 +49,7 @@ jobs:
|
|||||||
onlyDiff: 'true'
|
onlyDiff: 'true'
|
||||||
branch: 'develop'
|
branch: 'develop'
|
||||||
header: 'Size report'
|
header: 'Size report'
|
||||||
append: true
|
size: "MB"
|
||||||
ghToken: ${{ secrets.GITHUB_TOKEN }}
|
ghToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
report-server-size:
|
report-server-size:
|
||||||
name: Report server size
|
name: Report server size
|
||||||
@ -80,6 +80,7 @@ jobs:
|
|||||||
branch: 'develop'
|
branch: 'develop'
|
||||||
header: 'Size report'
|
header: 'Size report'
|
||||||
append: true
|
append: true
|
||||||
|
size: "MB"
|
||||||
ghToken: ${{ secrets.GITHUB_TOKEN }}
|
ghToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
test_dev:
|
test_dev:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user