Skip to content

Commit e900eb0

Browse files
committed
Update
1 parent 8e01505 commit e900eb0

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

.github/workflows/build-dev.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ jobs:
5555
<?php
5656
$alpineVersion = getenv('ALPINE_VERSION');
5757
$phpVersion = getenv('PHP_VERSION');
58-
$version = match($phpVersion){
59-
'8.1' => '81',
60-
'8.2' => '82',
61-
'8.3' => '83',
62-
default => substr($phpVersion, 0, 1)
63-
};
58+
$version = str_replace(".", "", $phpVersion);
6459
echo "::set-output name=version::" . $version . PHP_EOL;
6560
- name: Set up QEMU
6661
uses: docker/setup-qemu-action@v3

.github/workflows/build-swoole.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@ jobs:
4949
<?php
5050
$alpineVersion = getenv('ALPINE_VERSION');
5151
$phpVersion = getenv('PHP_VERSION');
52-
$version = match($phpVersion){
53-
'8.1' => '81',
54-
'8.2' => '82',
55-
'8.3' => '83',
56-
default => substr($phpVersion, 0, 1)
57-
};
52+
$version = str_replace(".", "", $phpVersion);
5853
echo "::set-output name=version::" . $version . PHP_EOL;
5954
- name: Set up QEMU
6055
uses: docker/setup-qemu-action@v3

.github/workflows/build-swow.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@ jobs:
4949
<?php
5050
$alpineVersion = getenv('ALPINE_VERSION');
5151
$phpVersion = getenv('PHP_VERSION');
52-
$version = match($phpVersion){
53-
'8.1' => '81',
54-
'8.2' => '82',
55-
'8.3' => '83',
56-
default => substr($phpVersion, 0, 1)
57-
};
52+
$version = str_replace(".", "", $phpVersion);
5853
echo "::set-output name=version::" . $version . PHP_EOL;
5954
- name: Set up QEMU
6055
uses: docker/setup-qemu-action@v3

0 commit comments

Comments
 (0)