Skip to content

Commit e2d6d9c

Browse files
committed
Link NSC promotion release notes
1 parent 7c8230a commit e2d6d9c

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/promote-nsc-channel.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,16 @@ jobs:
134134
exit 1
135135
fi
136136
137+
source_repo_url="https://github.com/${SOURCE_REPO}"
138+
source_commit_url="${source_repo_url}/commit/${SOURCE_SHA}"
137139
notes_file="${RUNNER_TEMP}/nsc-release-notes.md"
138140
cat > "${notes_file}" <<EOF
139-
Promoted NSC payload from \`${SOURCE_REPO}\`.
141+
Promoted NSC payload from [\`${SOURCE_REPO}\`](${source_repo_url}).
140142
141-
- source commit: \`${SOURCE_SHA}\`
143+
- source commit: [\`${SOURCE_SHA}\`](${source_commit_url})
142144
- source branch: \`${SOURCE_BRANCH}\`
143145
- source event: \`${SOURCE_EVENT}\`
144-
- source run: ${RUN_URL}
146+
- source run: [\`${RUN_ID}\`](${RUN_URL})
145147
EOF
146148
147149
release_exists=false
@@ -167,6 +169,11 @@ jobs:
167169
echo "Release ${RELEASE_TAG} already exists in ${ASSET_REPO}. Reusing immutable release."
168170
fi
169171
172+
gh release edit "${RELEASE_TAG}" \
173+
--repo "${ASSET_REPO}" \
174+
--title "${RELEASE_TAG}" \
175+
--notes-file "${notes_file}"
176+
170177
- name: Update manifests and tag pin
171178
id: manifest-diff
172179
env:

0 commit comments

Comments
 (0)