Skip to content

Commit 123a422

Browse files
committed
Standardize input parameter names to use kebab-case
1 parent 873e24f commit 123a422

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ Start Dev Proxy with optional configuration file. Dev Proxy will run in the back
3737
- name: Start Dev Proxy
3838
uses: dev-proxy-tools/actions/start@v0
3939
with:
40-
logFile: devproxy.log # optional, defaults to devproxy.log
41-
configFile: ./devproxy.json # optional, defaults to devproxyrc.json
40+
log-file: devproxy.log # optional, defaults to devproxy.log
41+
config-file: ./devproxyrc.json # optional, will use default configuration if not provided
4242
```
4343

4444
**Inputs:**
4545

4646
| Name | Description | Required | Default |
4747
|------|-------------|----------|---------|
48-
| `logFile` | The file to log Dev Proxy output to | Yes | `devproxy.log` |
49-
| `configFile` | The path to the Dev Proxy configuration file | No | - |
48+
| `log-file` | The file to log Dev Proxy output to | Yes | `devproxy.log` |
49+
| `config-file` | The path to the Dev Proxy configuration file | No | - |
5050

5151
### Stop
5252

start/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Start Dev Proxy
22
description: Start Dev Proxy
33
inputs:
4-
logFile:
4+
log-file:
55
description: The file to log Dev Proxy output to
66
required: true
77
default: devproxy.log
8-
configFile:
8+
config-file:
99
description: The path to the Dev Proxy configuration file
1010
required: false
1111
runs:
@@ -14,7 +14,7 @@ runs:
1414
- name: Start Dev Proxy
1515
id: start
1616
run: |
17-
log_file="${{ inputs.logFile }}"
17+
log_file="${{ inputs.log-file }}"
1818
1919
echo "Starting Dev Proxy..."
2020
@@ -32,8 +32,8 @@ runs:
3232
# log Dev Proxy output to the log file
3333
# log stdout and stderr to the file
3434
config_arg=""
35-
if [ -n "${{ inputs.configFile }}" ]; then
36-
config_arg="-c ${{ inputs.configFile }}"
35+
if [ -n "${{ inputs.config-file }}" ]; then
36+
config_arg="-c ${{ inputs.config-file }}"
3737
fi
3838
3939
./devproxy/devproxy $config_arg > $log_file 2>&1 &

0 commit comments

Comments
 (0)