Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
# By default, .github/preview-updater.yml
#
# Required: false
configPath: ''
config: ''
```

The action is setting the following outputs:
Expand All @@ -73,10 +73,10 @@ The action is setting the following outputs:
>
> For example,
>
> - template is `https://github.com/<repo>/.github/blob/main/<configPath>`.
> - template is `https://github.com/<repo>/.github/blob/main/<config>`.
> - result is `https://github.com/TheDragonCode/.github/blob/main/.github/preview-updater.yml`.

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

```yaml
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
GitHub token with `contents:write` permission used to read and update repository files.
required: true

configPath:
config:
description: Path to the preview configuration YAML file.
default: '.github/preview-updater.yml'
required: false
2 changes: 1 addition & 1 deletion src/utils/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const TOKEN = {
};

export const CONFIG_PATH = {
name: "configPath",
name: "config",
env: "INPUT_CONFIG_PATH",
defaultValue: ".github/preview-updater.yml",
};
Expand Down