Skip to content

Commit

Permalink
Merge branch 'main' into lemeurherve-patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve authored Aug 11, 2023
2 parents 6426f8b + d988ef6 commit 3ae4524
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/check-chart-versions-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
gh pr view ${{ github.event.pull_request.number }} --json files -q '.files[].path' | grep "^charts/" | xargs dirname | cut -d "/" -f 2 | sort --unique > modified_chart_folders.txt
# Store the modified folders as a step output
# echo "modified_chart_folders=$(cat modified_chart_folders.txt)" >> $GITHUB_OUTPUT
{
echo 'modified_chart_folders<<EOF'
cat modified_chart_folders.txt
Expand All @@ -26,22 +25,12 @@ jobs:
run: |
git checkout -b $GITHUB_BASE_REF
git checkout -b $GITHUB_HEAD_REF
echo "GITHUB_BASE_REF: '$GITHUB_BASE_REF'"
echo "GITHUB_HEAD_REF: '$GITHUB_HEAD_REF'"
for folder in $modified_chart_folders; do
echo "==== folder: $folder"
git show $GITHUB_HEAD_REF:charts/$folder/Chart.yaml
MAIN_CHART_VERSION=$(git show $GITHUB_BASE_REF:charts/$folder/Chart.yaml | grep "^version:")
PR_CHART_VERSION=$(git show $GITHUB_HEAD_REF:charts/$folder/Chart.yaml | grep "^version:")
echo "MAIN_CHART_VERSION: '$MAIN_CHART_VERSION'"
echo "PR_CHART_VERSION: '$PR_CHART_VERSION'"
echo "MAIN_CHART_VERSIONcharts/$folder/Chart.yaml: '$MAIN_CHART_VERSION'"
echo "PR_CHART_VERSIONcharts/$folder/Chart.yaml: '$PR_CHART_VERSION'"
if [ "$MAIN_CHART_VERSION" == "$PR_CHART_VERSION" ]; then
if [ "$MAIN_CHART_VERSION" != "$PR_CHART_VERSION" ]; then
echo "ERROR: the version '$PR_CHART_VERSION' of the '${folder}' chart hasn't been bumped."
exit 1
fi
Expand Down

0 comments on commit 3ae4524

Please sign in to comment.