Skip to content

Commit ef117d4

Browse files
Merge branch '5.0' into 5
2 parents fe4803a + 3d0e7b2 commit ef117d4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ on:
77

88
jobs:
99
ci:
10+
# Do not run if this is a pull-request from same repo i.e. not a fork repo
11+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
1012
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1

src/Tasks/MigrationTaskTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ private function publishLinks(): void
330330
if ($shouldPublishLinks) {
331331
$this->output->writeln('Publishing links.');
332332
/** @var Versioned&Link $link */
333-
foreach (Link::get()->chunkedFetch() as $link) {
333+
foreach (Link::get()->sort('ID')->chunkedFetch() as $link) {
334334
// Allow developers to skip publishing each link - this allows for scenarios
335335
// where links were Versioned in v2/v3 projects.
336336
$shouldPublishLink = true;

0 commit comments

Comments
 (0)