Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebianchi committed Oct 20, 2024
1 parent c3f493b commit 69fdf35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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")
Expand Down

0 comments on commit 69fdf35

Please sign in to comment.