Skip to content

Commit 06cf763

Browse files
authored
refactor(discord-payload): remove REPO_STARS from payload and workflow (Tracer-Cloud#2693)
1 parent 843d0d3 commit 06cf763

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

.github/scripts/build-discord-payload.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""Build the Discord release announcement JSON payload.
33
44
Reads from environment variables set by the GitHub Actions step:
5-
RELEASE_TAG, RELEASE_URL, REPO_STARS,
5+
RELEASE_TAG, RELEASE_URL,
66
DISCORD_RELEASES_ROLE_ID, DISCORD_RELEASE_LOGO_EMOJI, DISCORD_RELEASE_LOGO_URL,
77
CHANGELOG_FILE — path to DISCORD_NARRATIVE.md or GENERATED_CHANGELOG.md
88
"""
@@ -16,7 +16,6 @@
1616

1717
tag = os.environ["RELEASE_TAG"]
1818
url = os.environ["RELEASE_URL"]
19-
stars = os.environ.get("REPO_STARS", "0")
2019
role_id = os.environ.get("DISCORD_RELEASES_ROLE_ID", "")
2120
logo_emoji = os.environ.get("DISCORD_RELEASE_LOGO_EMOJI", "")
2221
logo_url = os.environ.get("DISCORD_RELEASE_LOGO_URL", "")
@@ -39,8 +38,7 @@
3938
mention
4039
+ logo_prefix
4140
+ f"🚀 **opensre {bt}{tag}{bt} is live**\n"
42-
+ f"🔗 {url}\n"
43-
+ f"⭐ {stars} stars\n\n"
41+
+ f"🔗 {url}\n\n"
4442
+ changelog
4543
)
4644

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ jobs:
472472
DISCORD_RELEASE_LOGO_URL: ${{ secrets.DISCORD_RELEASE_LOGO_URL }}
473473
RELEASE_TAG: ${{ needs.prepare.outputs.tag_name }}
474474
RELEASE_URL: ${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ needs.prepare.outputs.tag_name }}
475-
REPO_STARS: ${{ github.event.repository.stargazers_count }}
476475
shell: bash
477476
run: |
478477
set -euo pipefail

0 commit comments

Comments
 (0)