Skip to content

Commit

Permalink
add support to custom working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebianchi committed Oct 20, 2024
1 parent d638cd2 commit c3f493b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ inputs:
commit:
description: "Commit SHA or branch to use for the release"
required: false
working-directory:
description: "The working directory to run the action in"
required: false
outputs:
changed_charts:
description: "A comma-separated list of charts that were released on this run. Will be an empty string if no updates were detected, will be unset if `--skip_packaging` is used: in the latter case your custom packaging step is responsible for setting its own outputs if you need them."
Expand All @@ -78,6 +81,10 @@ runs:
steps:
- id: release
run: |
if [[ -n "${{ inputs.working-directory }}" ]]; then
cd "${{ inputs.working-directory }}"
fi
owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")
if [[ -n "${{ inputs.owner }}" ]]; then
owners=${{ inputs.owner }}
Expand Down

0 comments on commit c3f493b

Please sign in to comment.