File tree Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 55
55
<?php
56
56
$alpineVersion = getenv('ALPINE_VERSION');
57
57
$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);
64
59
echo "::set-output name=version::" . $version . PHP_EOL;
65
60
- name : Set up QEMU
66
61
uses : docker/setup-qemu-action@v3
Original file line number Diff line number Diff line change 49
49
<?php
50
50
$alpineVersion = getenv('ALPINE_VERSION');
51
51
$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);
58
53
echo "::set-output name=version::" . $version . PHP_EOL;
59
54
- name : Set up QEMU
60
55
uses : docker/setup-qemu-action@v3
Original file line number Diff line number Diff line change 49
49
<?php
50
50
$alpineVersion = getenv('ALPINE_VERSION');
51
51
$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);
58
53
echo "::set-output name=version::" . $version . PHP_EOL;
59
54
- name : Set up QEMU
60
55
uses : docker/setup-qemu-action@v3
You can’t perform that action at this time.
0 commit comments