Skip to content

Commit 69fdf35

Browse files
committed
update workflow
1 parent c3f493b commit 69fdf35

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ A GitHub action to turn a GitHub project into a self-hosted Helm chart repo, usi
2424
- `mark_as_latest`: When you set this to `false`, it will mark the created GitHub release not as 'latest'.
2525
- `packages_with_index`: When you set this to `true`, it will upload chart packages directly into publishing branch.
2626
- `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)
27+
- `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.
28+
- `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.
29+
- `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.
30+
- `workdir`: The working directory where the action will be executed. Useful if you have multiple repository checkouts in your workflow.
2731

2832
### Outputs
2933

action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ inputs:
6565
commit:
6666
description: "Commit SHA or branch to use for the release"
6767
required: false
68-
working-directory:
68+
workdir:
6969
description: "The working directory to run the action in"
7070
required: false
7171
outputs:
@@ -81,8 +81,8 @@ runs:
8181
steps:
8282
- id: release
8383
run: |
84-
if [[ -n "${{ inputs.working-directory }}" ]]; then
85-
cd "${{ inputs.working-directory }}"
84+
if [[ -n "${{ inputs.workdir }}" ]]; then
85+
cd "${{ inputs.workdir }}"
8686
fi
8787
8888
owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")

0 commit comments

Comments
 (0)