File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ Inputs:
1919* ` app_version ` Explicitly specify app version in package. If not defined then used chart values.
2020* ` chart_version ` Explicitly specify chart version in package. If not defined then used chart values.
2121* ` index_dir ` The location of ` index.yaml ` file in the repo, defaults to the same value as ` target_dir `
22+ * ` enterprise_url ` The URL of enterprise github server in the format ` <server-url>/<organisation> `
2223
2324## Examples
2425
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ inputs:
4949 index_dir :
5050 description : " The location of `index.yaml` file in the repo, defaults to the same value as `target_dir`"
5151 required : false
52+ enterprise_url :
53+ description : " The URL of enterprise github server in the format '<server-url>/<organisation>'"
54+ required : false
5255runs :
5356 using : ' docker'
5457 image : ' Dockerfile'
6770 - ${{ inputs.app_version }}
6871 - ${{ inputs.chart_version }}
6972 - ${{ inputs.index_dir }}
73+ - ${{ inputs.enterprise_url }}
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ COMMIT_EMAIL=${11}
3131APP_VERSION=${12}
3232CHART_VERSION=${13}
3333INDEX_DIR=${14}
34+ ENTERPRISE_URL=${15}
3435
3536CHARTS=()
3637CHARTS_TMP_DIR=$( mktemp -d)
@@ -71,7 +72,11 @@ main() {
7172 fi
7273
7374 if [[ -z " $REPO_URL " ]]; then
74- REPO_URL=" https://x-access-token:${GITHUB_TOKEN} @github.com/${OWNER} /${REPOSITORY} "
75+ if [[ -z " $ENTERPRISE_URL " ]]; then
76+ REPO_URL=" https://x-access-token:${GITHUB_TOKEN} @github.com/${OWNER} /${REPOSITORY} "
77+ else
78+ REPO_URL=" https://x-access-token:${GITHUB_TOKEN} @${ENTERPRISE_URL} /${REPOSITORY} "
79+ fi
7580 fi
7681
7782 if [[ -z " $COMMIT_USERNAME " ]]; then
You can’t perform that action at this time.
0 commit comments