diff --git a/seaweed-block/.github/workflows/spec-trace.yml b/seaweed-block/.github/workflows/spec-trace.yml index 25834070ec..7bd9bdaa40 100644 --- a/seaweed-block/.github/workflows/spec-trace.yml +++ b/seaweed-block/.github/workflows/spec-trace.yml @@ -22,9 +22,10 @@ concurrency: jobs: trace: name: spec trace - # A GitHub-hosted runner: this check runs no PR code and needs no project - # host, so it does not queue behind the self-hosted test jobs. - runs-on: ubuntu-latest + # Same-repository PRs use the project's self-hosted runners, as the test + # workflow does; fork PRs stay on a GitHub-hosted runner, whose shared queue + # can wait for hours. No PR code runs here either way. + runs-on: ${{ github.event.pull_request.head.repo.full_name == github.repository && 'tp04-seaweed-block' || 'ubuntu-latest' }} timeout-minutes: 5 steps: - name: Checkout base @@ -36,12 +37,6 @@ jobs: fetch-depth: 0 persist-credentials: false - - name: Set up Go - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 - with: - go-version-file: go.mod - cache: false - - name: Check spec trace env: BASE: ${{ github.event.pull_request.base.sha }}