Skip to content

Commit 1cd715f

Browse files
authored
Merge pull request #7 from nutanix-cloud-native/faiq/release-1.10.7.ncn.0
fix: test release pipeline
2 parents 788c7fc + 35c25da commit 1cd715f

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.github/workflows/release.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,23 @@ jobs:
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: |

CHANGELOG/v1.10.7-ncn.0.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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!_ 😊

0 commit comments

Comments
 (0)