Skip to content

Commit 04e0de0

Browse files
Allow manual checkout for perf and size workflows (#1678)
1 parent 45152ee commit 04e0de0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/perf.yml

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: PerformanceCheck
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
BRANCH:
7+
description: Branch to checkout
8+
required: false
9+
default: 'main'
10+
type: string
511
# Don't run on every merge to main, because many merges
612
# may not even be vm related, but infra, or GH Actions
713
pull_request:
@@ -28,6 +34,7 @@ jobs:
2834
- uses: actions/checkout@v4
2935
with:
3036
fetch-depth: 0
37+
ref: ${{ inputs.BRANCH }}
3138

3239
- uses: marceloprado/has-changed-path@v1.0.1
3340
id: did-change

.github/workflows/size.yml

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Size
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
BRANCH:
7+
description: Branch to checkout
8+
required: false
9+
default: 'main'
10+
type: string
511
push:
612
branches:
713
- main
@@ -23,6 +29,7 @@ jobs:
2329
pnpm-args: '--ignore-scripts'
2430
node-version: 20.1.0
2531
repo-token: ${{ secrets.GITHUB_TOKEN }}
32+
ref: ${{ inputs.BRANCH }}
2633
- run: pnpm turbo build
2734
- run: sudo snap install dust
2835
- name: "Get sizes for development outputs"

0 commit comments

Comments
 (0)