Skip to content

Commit 7b7890d

Browse files
authored
Run changelog check on Linux (#13026)
Fixes an issue with a stack overflow in the changelog job.
1 parent f640e11 commit 7b7890d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/changelog.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
changelog:
1515
name: Changelog
1616
runs-on:
17-
- X64
17+
- Linux
18+
- self-hosted
1819
steps:
1920
- if: runner.os == 'Windows'
2021
name: Setup required bazel environment

build_tools/build/src/ci_gen.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,16 +542,19 @@ fn concurrency(group: impl AsRef<str>) -> Concurrency {
542542
/// Generate a workflow that checks if the changelog has been updated (if needed).
543543
pub fn changelog() -> Result<Workflow> {
544544
use PullRequestActivityType::*;
545-
let mut ret = Workflow::new("Changelog");
546-
ret.on.pull_request(PullRequest::default().with_types([
545+
let mut workflow = Workflow::new("Changelog");
546+
workflow.on.pull_request(PullRequest::default().with_types([
547547
Labeled,
548548
Unlabeled,
549549
Synchronize,
550550
Opened,
551551
Reopened,
552552
]));
553-
ret.add_job(RunStepsBuilder::new("changelog-check").build_job("Changelog", RunnerLabel::X64));
554-
Ok(ret)
553+
let mut changelog_check =
554+
RunStepsBuilder::new("changelog-check").build_job("Changelog", RunnerLabel::X64);
555+
changelog_check.runs_on = vec![RunnerLabel::Linux, RunnerLabel::SelfHosted];
556+
workflow.add_job(changelog_check);
557+
Ok(workflow)
555558
}
556559

557560
pub fn nightly() -> Result<Workflow> {

0 commit comments

Comments
 (0)