diff --git a/README.md b/README.md index e97db2c..d226163 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ jobs: # By default, .github/preview-updater.yml # # Required: false - configPath: '' + config: '' ``` The action is setting the following outputs: @@ -73,10 +73,10 @@ The action is setting the following outputs: > > For example, > -> - template is `https://github.com//.github/blob/main/`. +> - template is `https://github.com//.github/blob/main/`. > - 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 diff --git a/action.yml b/action.yml index c25bf38..1ebbb5f 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/src/utils/inputs.ts b/src/utils/inputs.ts index 2b36366..b39f2b0 100644 --- a/src/utils/inputs.ts +++ b/src/utils/inputs.ts @@ -6,7 +6,7 @@ export const TOKEN = { }; export const CONFIG_PATH = { - name: "configPath", + name: "config", env: "INPUT_CONFIG_PATH", defaultValue: ".github/preview-updater.yml", };