From 1c86206fbcf68f29d84681cdf2e1c009c63c93e4 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:54:58 -0500 Subject: [PATCH] Allow manual checkout for perf and size workflows --- .github/workflows/perf.yml | 7 +++++++ .github/workflows/size.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 36b5d8a40f..064c84431d 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -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: @@ -28,6 +34,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ inputs.BRANCH }} - uses: marceloprado/has-changed-path@v1.0.1 id: did-change diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index a47a3623d3..11a272b80d 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -2,6 +2,12 @@ name: Size on: workflow_dispatch: + inputs: + BRANCH: + description: Branch to checkout + required: false + default: 'main' + type: string push: branches: - main @@ -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"