Skip to content

Commit 9669666

Browse files
committed
fix(ci): budget hosted artifact checks for contributor forks
1 parent e04caa6 commit 9669666

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ jobs:
10671067
# check-lint/check-dependencies; tsdown parallelizes across the extra
10681068
# cores for roughly the same billed core-minutes.
10691069
runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'blacksmith-32vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
1070-
timeout-minutes: 20
1070+
timeout-minutes: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && 35 || 20 }}
10711071
outputs:
10721072
channels-result: ${{ steps.built_artifact_checks.outputs['channels-result'] }}
10731073
core-support-boundary-result: ${{ steps.built_artifact_checks.outputs['core-support-boundary-result'] }}

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,6 +2979,9 @@ describe("ci workflow guards", () => {
29792979

29802980
expect(source).toContain("createNodeTestShardBundles");
29812981
expect(workflow.jobs["build-artifacts"]["runs-on"]).toContain("blacksmith-32vcpu-ubuntu-2404");
2982+
expect(workflow.jobs["build-artifacts"]["timeout-minutes"]).toBe(
2983+
"${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && 35 || 20 }}",
2984+
);
29822985
expect(buildArtifactsTestbox.jobs["build-artifacts"]["runs-on"]).toBe(
29832986
"blacksmith-16vcpu-ubuntu-2404",
29842987
);

0 commit comments

Comments
 (0)