Skip to content

Commit 0a6aee7

Browse files
committed
Update GitHub release workflow titles, headers, and discussion settings
- should say Editor v... or Browser v... [Image] - always create a discussion for release ├── .github │ └── workflows │ └── github-release.yml └── apps ├── browser │ ├── create-zip-archives.ts │ ├── package.json │ ├── src │ │ └── manifest.json │ └── webpack.config.ts └── editor └── package.json
1 parent d703d43 commit 0a6aee7

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

‎.github/workflows/github-release.yml‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ jobs:
6565
if: steps.check_tag.outputs.exists == 'false'
6666
run: |
6767
PREV_TAG=$(git describe --tags --match "v*" --abbrev=0 2>/dev/null || echo "")
68-
69-
echo "### What's changed in VS Code extension:" > release_notes.md
68+
69+
echo "### What's new in the editor extension:" > release_notes.md
7070
echo "" >> release_notes.md
71-
71+
7272
if [ -n "$PREV_TAG" ]; then
7373
git log ${PREV_TAG}..HEAD --pretty=format:"* %s (%h)" -- apps/editor >> release_notes.md
7474
else
@@ -80,8 +80,9 @@ jobs:
8080
uses: softprops/action-gh-release@v2
8181
with:
8282
tag_name: ${{ steps.package_version.outputs.version }}
83-
name: Release ${{ steps.package_version.outputs.version }}
83+
name: Editor ${{ steps.package_version.outputs.version }}
8484
body_path: release_notes.md
85+
discussion_category_name: "Announcements"
8586
# Grab the compiled .vsix generated by 'vsce package'
8687
files: apps/editor/*.vsix
8788

@@ -99,6 +100,7 @@ jobs:
99100
run: |
100101
VERSION=$(jq -r .version apps/browser/src/manifest.json)
101102
echo "version=browser-v$VERSION" >> $GITHUB_OUTPUT
103+
echo "raw_version=v$VERSION" >> $GITHUB_OUTPUT
102104
103105
- name: Check if tag exists
104106
id: check_tag
@@ -137,10 +139,10 @@ jobs:
137139
if: steps.check_tag.outputs.exists == 'false'
138140
run: |
139141
PREV_TAG=$(git describe --tags --match "browser-v*" --abbrev=0 2>/dev/null || echo "")
140-
141-
echo "### What's changed in Browser extension:" > release_notes_browser.md
142+
143+
echo "### What's new in the browser extension:" > release_notes_browser.md
142144
echo "" >> release_notes_browser.md
143-
145+
144146
if [ -n "$PREV_TAG" ]; then
145147
git log ${PREV_TAG}..HEAD --pretty=format:"* %s (%h)" -- apps/browser >> release_notes_browser.md
146148
else
@@ -152,6 +154,7 @@ jobs:
152154
uses: softprops/action-gh-release@v2
153155
with:
154156
tag_name: ${{ steps.browser_version.outputs.version }}
155-
name: Browser Extension Release ${{ steps.browser_version.outputs.version }}
157+
name: Browser ${{ steps.browser_version.outputs.raw_version }}
156158
body_path: release_notes_browser.md
157-
files: apps/browser/*.zip
159+
discussion_category_name: "Announcements"
160+
files: apps/browser/*.zip

0 commit comments

Comments
 (0)