Skip to content

Commit

Permalink
Allow manual checkout for perf and size workflows (#1678)
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli authored Jan 15, 2025
1 parent 45152ee commit 04e0de0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: PerformanceCheck

on:
workflow_dispatch:
inputs:
BRANCH:
description: Branch to checkout
required: false
default: 'main'
type: string
# Don't run on every merge to main, because many merges
# may not even be vm related, but infra, or GH Actions
pull_request:
Expand All @@ -28,6 +34,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.BRANCH }}

- uses: marceloprado/[email protected]
id: did-change
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Size

on:
workflow_dispatch:
inputs:
BRANCH:
description: Branch to checkout
required: false
default: 'main'
type: string
push:
branches:
- main
Expand All @@ -23,6 +29,7 @@ jobs:
pnpm-args: '--ignore-scripts'
node-version: 20.1.0
repo-token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.BRANCH }}
- run: pnpm turbo build
- run: sudo snap install dust
- name: "Get sizes for development outputs"
Expand Down

0 comments on commit 04e0de0

Please sign in to comment.