Skip to content

Commit

Permalink
Revert README changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wajihyassine committed Jan 27, 2025
1 parent d5f985e commit d716ce4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/generate-chart-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ jobs:
TEMP_FILE: "${{runner.temp}}/pr-${{github.event.number}}.diff"
run: |
exit_code=0
cd charts
# This request doesn't consume API calls.
curl -Lkso $TEMP_FILE $DIFF_URL
files_changed="$(sed -nr 's/[\-\+]{3} [ab]\/(.*)/\1/p' $TEMP_FILE | sort | uniq)"
# Adding || true to avoid "Process exited with code 1" errors
charts_dirs_changed="$(echo "$files_changed" | xargs dirname | grep -o "charts/osdfir-infrastructure" | sort | uniq || true)"
charts_dirs_changed="$(echo "$files_changed" | xargs dirname | grep -o "charts/[^/]*" | sort | uniq || true)"
for chart in ${charts_dirs_changed}; do
echo "Updating README.md for ${chart}"
readme-generator --values "${chart}/values.yaml" --readme "${chart}/README.md"
readme-generator --values "charts/${chart}/values.yaml" --readme "charts/${chart}/README.md"
done
- name: Push changes
run: |
Expand Down

0 comments on commit d716ce4

Please sign in to comment.