Skip to content

Commit ac238ad

Browse files
committed
update version clean to remove build metadata from ec semver
1 parent b119cbf commit ac238ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/embedded-cluster-release-notes.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
PATTERN: ".+RELEASE_NOTES_PLACEHOLDER.+"
3232
EC_VERSION: ${{ github.event.inputs.version }}
3333
run: |
34-
# Extract EC version without v prefix if it exists
35-
EC_VERSION_CLEAN=${EC_VERSION#v}
34+
# Remove any suffix after the + character to get clean semver
35+
EC_VERSION_CLEAN=${EC_VERSION%%+*}
3636
3737
# Create the full release notes content
3838
cat > /tmp/release-notes.txt << EOF
@@ -73,9 +73,9 @@ jobs:
7373
id: cpr
7474
with:
7575
token: ${{ secrets.REPLICATED_GH_PAT }}
76-
commit-message: Embedded Cluster ${{ github.event.client_payload.version }} release notes
77-
title: Embedded Cluster ${{ github.event.client_payload.version }} release notes
78-
branch: automation/embedded-cluster-release-notes-${{ github.event.client_payload.version }}
76+
commit-message: Embedded Cluster ${{ github.event.inputs.version }} release notes
77+
title: Embedded Cluster ${{ github.event.inputs.version }} release notes
78+
branch: automation/embedded-cluster-release-notes-${{ github.event.inputs.version }}
7979
delete-branch: true
8080
base: "main"
8181
body: "Automated changes by the [embedded-cluster-release-notes](https://github.com/replicatedhq/replicated-docs/blob/main/.github/workflows/embedded-cluster-release-notes.yml) GitHub action. Please manually replace the version table placeholder."
@@ -91,5 +91,5 @@ jobs:
9191
webhook: ${{ secrets.EMBEDDED_CLUSTER_RELEASE_NOTES_SLACK_WEBHOOK }}
9292
webhook-type: webhook-trigger
9393
payload: |
94-
version: "${{ github.event.client_payload.version }}"
94+
version: "${{ github.event.inputs.version }}"
9595
pull_request_url: "${{steps.cpr.outputs.pull-request-url}}"

0 commit comments

Comments
 (0)