File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed
Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 2222 fetch-depth : 0
2323 - name : Get changed files
2424 id : changed-files
25- uses : tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # tag=v47.0.0
25+ run : |
26+ # Use 'grep -v "^$"' to filter out any empty lines,
27+ # which should clean up the trailing newline without merging the file paths.
28+ changed_files=$(git diff HEAD^ HEAD --name-only CHANGELOG/ | grep -v "^$")
29+ # Recalculate the count. If there was one file, this should now be 1.
30+ changed_files_count=$(echo "$changed_files" | wc -l)
31+ # The rest of your code is fine now that the source variable is clean.
32+ if [[ -z "$changed_files" ]]; then
33+ changed_files_count=0
34+ fi
35+
36+ # Setting the multiline output (using the clean file list)
37+ echo "all_changed_files<<EOF" >> $GITHUB_OUTPUT
38+ echo "$changed_files" >> $GITHUB_OUTPUT
39+ echo "EOF" >> $GITHUB_OUTPUT
40+ # Setting the single-line count
41+ echo "all_changed_files_count=$changed_files_count" >> $GITHUB_OUTPUT
2642 - name : Get release version
2743 id : release-version
2844 run : |
Original file line number Diff line number Diff line change 1+ ## 👌 Kubernetes version support
2+
3+ - Management Cluster: v1.28.x -> v1.33.x
4+ - Workload Cluster: v1.26.x -> v1.33.x
5+
6+ [ More information about version support can be found here] ( https://cluster-api.sigs.k8s.io/reference/versions.html )
7+
8+ ## Changes since v1.10.7
9+ ## :chart_with_upwards_trend : Overview
10+ - 1 new commits merged
11+
12+ ## :sparkles : New Features
13+
14+ ## :seedling : Others
15+ - 🐛 fix: ignore if control plane if spec.controlPlane is set #1 (#1 )
16+
17+ ## Dependencies
18+
19+ ### Added
20+ _ Nothing has changed._
21+
22+ ### Changed
23+
24+ ### Removed
25+ _ Nothing has changed._
26+
27+ _ Thanks to all our contributors!_ 😊
You can’t perform that action at this time.
0 commit comments