You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: trigger release highlights from release workflow with version
Instead of using workflow_run (which has contents:read and can't see
draft releases), the Release workflow now triggers Release Highlights
via workflow_dispatch passing the version tag. The highlights workflow
uses the tag directly instead of searching for drafts.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
# Only proceed if the triggering workflow succeeded (skip check for manual dispatch)
27
-
if [ -n "$WORKFLOW_CONCLUSION" ] && [ "$WORKFLOW_CONCLUSION" != "success" ]; then
28
-
echo "Release workflow did not succeed. Skipping."
29
-
exit 1
30
-
fi
31
21
---
32
22
33
23
# Release Highlights Generator
34
24
35
-
Generate an engaging release highlights summary for **${{ github.repository }}**.
25
+
Generate an engaging release highlights summary for **${{ github.repository }}** release `${{ inputs.version }}`.
36
26
37
27
## Workflow
38
28
39
29
### 1. Gather Release Data
40
30
41
-
Use the GitHub MCP tools to fetch release information:
31
+
Use the GitHub MCP tools to fetch release information for `${{ github.repository }}`:
42
32
43
-
1.**Find the latest draft release** — List releases for `${{ github.repository }}` and find the first draft release. If no draft release exists, call `safeoutputs/noop(message="No draft release found")` and stop.
33
+
1.**Get the draft release** — Get the release for tag `${{ inputs.version }}`. This is the draft release to update.
44
34
45
-
2.**Find the previous published release** — From the same releases list, find the most recent non-draftrelease. Note its tag name.
35
+
2.**Find the previous published release** — List releases and find the most recent non-draft, published release before `${{ inputs.version }}`. Note its tag name.
46
36
47
-
3.**Get commits between releases** — Use the GitHub MCP tools to compare the previous release tag with the draft release tag to get the list of commits.
37
+
3.**Get commits between releases** — Compare the previous release tag with `${{ inputs.version }}` to get the list of commits.
48
38
49
39
4.**Get merged PRs** — Search for merged pull requests in the repository between the two releases.
50
40
@@ -107,7 +97,7 @@ Dependency updates and internal improvements to keep things running smoothly.
0 commit comments