Skip to content

Commit 0f02533

Browse files
committed
feat: add PHP version input
1 parent 4a3904b commit 0f02533

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,28 @@ on:
77
required: false
88
type: string
99
default: ${{ inputs.ref }}
10+
php:
11+
required: false
12+
type: number
13+
default: 8.3
14+
1015
outputs:
1116
version:
1217
value: ${{ jobs.build.outputs.version }}
1318
artifact_name:
1419
value: ${{ jobs.build.outputs.artifact_name }}
1520
artifact_url:
1621
value: ${{ jobs.build.outputs.artifact_url }}
22+
artifact_id:
23+
value: ${{ jobs.build.outputs.artifact_id }}
1724
jobs:
1825
build:
1926
runs-on: ubuntu-latest
2027
outputs:
28+
version: ${{ steps.build.outputs.version }}
2129
artifact_name: ${{ steps.build.outputs.name }}
2230
artifact_url: ${{ steps.artifacts.outputs.artifact-url }}
23-
version: ${{ steps.build.outputs.version }}
31+
artifact_id: ${{ steps.artifacts.outputs.artifact-id }}
2432
steps:
2533
- uses: actions/checkout@v4
2634
with:
@@ -29,7 +37,7 @@ jobs:
2937
- name: Set up PHP
3038
uses: codesnippetspro/setup-php@v2
3139
with:
32-
php-version: "8.3"
40+
php-version: ${{ inputs.php }}
3341

3442
- name: Set up Node.js
3543
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)