Skip to content

Commit 1cd6d8c

Browse files
committed
Improve displayed workflow_call name
The ref is very long and makes things unreadable.
1 parent d518f2f commit 1cd6d8c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/matrix.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

33
const BRANCHES = [
4-
['ref' => 'refs/heads/master', 'version' => [8, 6]],
5-
['ref' => 'refs/heads/PHP-8.5', 'version' => [8, 5]],
6-
['ref' => 'refs/heads/PHP-8.4', 'version' => [8, 4]],
7-
['ref' => 'refs/heads/PHP-8.3', 'version' => [8, 3]],
8-
['ref' => 'refs/heads/PHP-8.2', 'version' => [8, 2]],
4+
['name' => 'master', 'ref' => 'refs/heads/master', 'version' => [8, 6]],
5+
['name' => 'PHP-8.5', 'ref' => 'refs/heads/PHP-8.5', 'version' => [8, 5]],
6+
['name' => 'PHP-8.4', 'ref' => 'refs/heads/PHP-8.4', 'version' => [8, 4]],
7+
['name' => 'PHP-8.3', 'ref' => 'refs/heads/PHP-8.3', 'version' => [8, 3]],
8+
['name' => 'PHP-8.2', 'ref' => 'refs/heads/PHP-8.2', 'version' => [8, 2]],
99
];
1010

1111
function get_branch_commit_cache_file_path(): string {
@@ -164,7 +164,7 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
164164
$nightly = $trigger === 'schedule' || $trigger === 'workflow_dispatch';
165165
$branches = $nightly && $branch === 'refs/heads/master'
166166
? get_branches()
167-
: [['ref' => $branch, 'version' => get_current_version()]];
167+
: [['name' => 'Suite', 'ref' => $branch, 'version' => get_current_version()]];
168168

169169
$labels = json_decode($argv[4] ?? '[]', true) ?? [];
170170
$labels = array_column($labels, 'name');

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
run: php .github/matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.ref }}" '${{ toJSON(github.event.pull_request.labels) }}' "${{ github.repository }}"
6363
PUSH:
6464
needs: GENERATE_MATRIX
65-
name: ${{ matrix.branch.ref }}
65+
name: ${{ matrix.branch.name }}
6666
uses: ./.github/workflows/test-suite.yml
6767
strategy:
6868
fail-fast: false

0 commit comments

Comments
 (0)