Skip to content

Commit 1f4548c

Browse files
Merge pull request #66
Rename `configPath` to `config`
2 parents 9b12539 + 799d2bf commit 1f4548c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
# By default, .github/preview-updater.yml
5555
#
5656
# Required: false
57-
configPath: ''
57+
config: ''
5858
```
5959
6060
The action is setting the following outputs:
@@ -73,10 +73,10 @@ The action is setting the following outputs:
7373
>
7474
> For example,
7575
>
76-
> - template is `https://github.com/<repo>/.github/blob/main/<configPath>`.
76+
> - template is `https://github.com/<repo>/.github/blob/main/<config>`.
7777
> - result is `https://github.com/TheDragonCode/.github/blob/main/.github/preview-updater.yml`.
7878

79-
Create `.github/preview-updater.yml` (or provide your own path via `configPath`).
79+
Create `.github/preview-updater.yml` (or provide your own path via `config`).
8080
All fields are optional—omitted ones fall back to defaults.
8181

8282
```yaml

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inputs:
1515
GitHub token with `contents:write` permission used to read and update repository files.
1616
required: true
1717

18-
configPath:
18+
config:
1919
description: Path to the preview configuration YAML file.
2020
default: '.github/preview-updater.yml'
2121
required: false

src/utils/inputs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const TOKEN = {
66
};
77

88
export const CONFIG_PATH = {
9-
name: "configPath",
9+
name: "config",
1010
env: "INPUT_CONFIG_PATH",
1111
defaultValue: ".github/preview-updater.yml",
1212
};

0 commit comments

Comments
 (0)