Skip to content

Commit

Permalink
Added infra-repo-dir input
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha committed Nov 20, 2024
1 parent 06da5c8 commit ade0efd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: "GitHub Token used to perform git and GitHub operations"
required: false
default: ${{ github.token }}
infra-repo-dir:
description: "Path to the infra repository. Default '/github/workspace/'"
required: false
default: '/github/workspace/'
infra-terraform-dirs:
description: "Comma or new line separated list of terraform directories in infra repo. For example 'components/terraform,components/terraform-old. Default 'components/terraform'"
required: false
Expand Down Expand Up @@ -68,6 +72,7 @@ runs:
env:
GITHUB_ACCESS_TOKEN: ${{ inputs.github-access-token }}
INFRA_TERRAFORM_DIRS: ${{ inputs.infra-terraform-dirs }}
INFRA_REPO_DIR: ${{ inputs.infra-repo-dir }}
VENDORING_ENABLED: ${{ inputs.vendoring-enabled }}
MAX_NUMBER_OF_PRS: ${{ inputs.max-number-of-prs }}
INCLUDE: ${{ inputs.include }}
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python3 src/main.py \
--github-api-token ${GITHUB_ACCESS_TOKEN} \
--go-getter-tool ${GO_GETTER_TOOL} \
--infra-repo-name ${GITHUB_REPOSITORY} \
--infra-repo-dir /github/workspace/ \
--infra-repo-dir ${INFRA_REPO_DIR} \
--infra-terraform-dirs "${INFRA_TERRAFORM_DIRS}" \
--vendoring-enabled ${VENDORING_ENABLED} \
--max-number-of-prs ${MAX_NUMBER_OF_PRS} \
Expand Down

0 comments on commit ade0efd

Please sign in to comment.