Skip to content

Commit 5e7ec39

Browse files
committed
Add workflow dispatch for php-linter
1 parent 0023166 commit 5e7ec39

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/php-linter.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# vim: set colorcolumn=:
22
name: php-linter
33

4-
on: [push, pull_request]
4+
on:
5+
push:
6+
pull_request:
7+
workflow_dispatch:
8+
inputs:
9+
php_version:
10+
description: "Specify the PHP version to use (e.g., 8.0, 8.1)"
11+
required: false
12+
default: '8.1'
513

614
env:
7-
PHP_VERSION: '8.1'
15+
PHP_VERSION: ${{ inputs.php_version || '8.1' }}
816

917
permissions:
1018
contents: read

0 commit comments

Comments
 (0)