diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 36b5d8a40..064c84431 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 a47a3623d..11a272b80 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"