diff --git a/README.md b/README.md index b14c4f3..5356589 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,10 @@ A GitHub action to turn a GitHub project into a self-hosted Helm chart repo, usi - `mark_as_latest`: When you set this to `false`, it will mark the created GitHub release not as 'latest'. - `packages_with_index`: When you set this to `true`, it will upload chart packages directly into publishing branch. - `pages_branch`: Name of the branch to be used to push the index and artifacts. (default to: gh-pages but it is not set in the action it is a default value for the chart-releaser binary) +- `owner`: The owner of the repository. This is used to create the GitHub release. If not set, the owner will be inferred from the repository URL. +- `repo`: The name of the repository. This is used to create the GitHub release. If not set, the repository will be inferred from the repository URL. +- `commit`: The commit sha or the branch to use for the release. If not set, the commit hash will be inferred from the GitHub Actions environment. +- `workdir`: The working directory where the action will be executed. Useful if you have multiple repository checkouts in your workflow. ### Outputs diff --git a/action.yml b/action.yml index 39c1d96..321aa49 100644 --- a/action.yml +++ b/action.yml @@ -65,7 +65,7 @@ inputs: commit: description: "Commit SHA or branch to use for the release" required: false - working-directory: + workdir: description: "The working directory to run the action in" required: false outputs: @@ -81,8 +81,8 @@ runs: steps: - id: release run: | - if [[ -n "${{ inputs.working-directory }}" ]]; then - cd "${{ inputs.working-directory }}" + if [[ -n "${{ inputs.workdir }}" ]]; then + cd "${{ inputs.workdir }}" fi owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")