-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
33 lines (30 loc) · 1.02 KB
/
release-size-info.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: 'Automation: Add size info to release'
on:
release:
types:
- published
workflow_dispatch:
inputs:
version:
description: Which version to add size info for
required: false
# This workflow is triggered when a release is published
# It fetches the size-limit info from the release branch and adds it to the release
jobs:
release-size-info:
runs-on: ubuntu-24.04
name: 'Add size-limit info to release'
steps:
- name: Get version
id: get_version
env:
INPUTS_VERSION: ${{ github.event.inputs.version }}
RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}
run: echo "version=${INPUTS_VERSION:-$RELEASE_TAG_NAME}" >> "$GITHUB_OUTPUT"
- name: Update Github Release
if: steps.get_version.outputs.version != ''
uses: getsentry/size-limit-release@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ steps.get_version.outputs.version }}
workflow_name: 'CI: Build & Test'