Skip to content

Commit

Permalink
Remove readme-generator call for upstream PR (#4549)
Browse files Browse the repository at this point in the history
Since upstream now run the readme generator as an action when PR is
created.

Signed-off-by: Michael Nelson <[email protected]>
  • Loading branch information
absoludity authored Apr 1, 2022
1 parent 126dc22 commit 06774a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ jobs:
# This token is passed as a GITHUB_TOKEN env var via CircleCI
name: Run the chart_sync script
command: |
./script/chart_sync.sh << pipeline.parameters.CI_BOT_USERNAME >> << pipeline.parameters.CI_BOT_EMAIL >> << pipeline.parameters.CI_BOT_GPG >> << pipeline.parameters.CHARTS_REPO_ORIGINAL >> << pipeline.parameters.BRANCH_CHARTS_REPO_ORIGINAL >> << pipeline.parameters.CHARTS_REPO_FORKED >> << pipeline.parameters.BRANCH_CHARTS_REPO_FORKED >> << pipeline.parameters.README_GENERATOR_REPO >>
./script/chart_sync.sh << pipeline.parameters.CI_BOT_USERNAME >> << pipeline.parameters.CI_BOT_EMAIL >> << pipeline.parameters.CI_BOT_GPG >> << pipeline.parameters.CHARTS_REPO_ORIGINAL >> << pipeline.parameters.BRANCH_CHARTS_REPO_ORIGINAL >> << pipeline.parameters.CHARTS_REPO_FORKED >> << pipeline.parameters.BRANCH_CHARTS_REPO_FORKED >>
sync_chart_from_bitnami:
environment:
<<: *common_envars
Expand Down
2 changes: 0 additions & 2 deletions script/chart_sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ CHARTS_REPO_ORIGINAL=${4:?Missing base chart repository}
BRANCH_CHARTS_REPO_ORIGINAL=${5:?Missing base chart repository branch}
CHARTS_REPO_FORKED=${6:?Missing forked chart repository}
BRANCH_CHARTS_REPO_FORKED=${7:?Missing forked chart repository branch}
README_GENERATOR_REPO=${8:?Missing readme generator repository}

currentVersion=$(grep -oP '(?<=^version: ).*' <"${KUBEAPPS_CHART_DIR}/Chart.yaml")
externalVersion=$(curl -s "https://raw.githubusercontent.com/${CHARTS_REPO_ORIGINAL}/${BRANCH_CHARTS_REPO_ORIGINAL}/${CHART_REPO_PATH}/Chart.yaml" | grep -oP '(?<=^version: ).*')
Expand All @@ -36,7 +35,6 @@ if [[ ${semverCompare} -gt 0 ]]; then
prBranchName="kubeapps-bump-${currentVersion}"

updateRepoWithLocalChanges "${TMP_DIR}" "${latestVersion}" "${CHARTS_REPO_ORIGINAL}" "${BRANCH_CHARTS_REPO_ORIGINAL}" "${BRANCH_CHARTS_REPO_FORKED}"
generateReadme "${README_GENERATOR_REPO}" "${TMP_DIR}/${CHART_REPO_PATH}"
commitAndSendExternalPR "${TMP_DIR}" "${prBranchName}" "${currentVersion}" "${CHARTS_REPO_ORIGINAL}" "${BRANCH_CHARTS_REPO_ORIGINAL}"
elif [[ ${semverCompare} -lt 0 ]]; then
echo "Skipping Chart sync. WARNING Current chart version (${currentVersion}) is less than the chart external version (${externalVersion})"
Expand Down

0 comments on commit 06774a4

Please sign in to comment.