From 2728d2a35d1891b8944db5a1ca634eccb508a480 Mon Sep 17 00:00:00 2001 From: Ali HD <85040609+alihd-tech@users.noreply.github.com> Date: Tue, 22 Sep 2026 00:09:42 +0330 Subject: [PATCH] Fix Marketplace release editor workflow --- .../workflows/update-marketplace-release.yml | 104 +++++++++--------- 1 file changed, 53 insertions(+), 51 deletions(-) diff --git a/.github/workflows/update-marketplace-release.yml b/.github/workflows/update-marketplace-release.yml index 5db05b9..8e9ed61 100644 --- a/.github/workflows/update-marketplace-release.yml +++ b/.github/workflows/update-marketplace-release.yml @@ -20,75 +20,77 @@ jobs: shell: bash run: | cat > release-notes.md <<'EOF' -# Code Life Balance v1.2.0 + # Code Life Balance v1.2.0 -Code Life Balance is a privacy-first GitHub Action for generating activity, coding-rhythm, and code-life balance reports directly inside your own GitHub Actions runner. + Code Life Balance is a privacy-first GitHub Action for generating activity, coding-rhythm, and code-life balance reports directly inside your own GitHub Actions runner. -Your GitHub token and private activity do not need to be sent to a Code Life Balance backend. + Your GitHub token and private activity do not need to be sent to a Code Life Balance backend. -## Marketplace highlights + ## Marketplace highlights -- Runs entirely inside GitHub Actions -- No Code Life Balance account required -- No Code Life Balance API required -- Public GitHub activity analysis -- Optional private repository analysis with your own fine-grained GitHub token -- Timezone-aware commit timing -- Configurable workday hours -- Code-life balance score -- Weekend, after-hours, and late-night activity metrics -- Current and longest streaks -- Language and repository statistics -- Dark and light report themes -- Detailed and compact SVG cards + - Runs entirely inside GitHub Actions + - No Code Life Balance account required + - No Code Life Balance API required + - Public GitHub activity analysis + - Optional private repository analysis with your own fine-grained GitHub token + - Timezone-aware commit timing + - Configurable workday hours + - Code-life balance score + - Weekend, after-hours, and late-night activity metrics + - Current and longest streaks + - Language and repository statistics + - Dark and light report themes + - Detailed and compact SVG cards -## Generated outputs + ## Generated outputs -- `code-life.svg` for GitHub profiles and READMEs -- `stats.json` for integrations and custom dashboards -- `report.md` for human-readable reports + - `code-life.svg` for GitHub profiles and READMEs + - `stats.json` for integrations and custom dashboards + - `report.md` for human-readable reports -## Basic usage + ## Basic usage -```yaml -- uses: alihd-tech/CodeLifeBalance@v1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - username: ${{ github.repository_owner }} - timezone: UTC - formats: svg,json,markdown - commit: "false" -``` + ```yaml + - uses: alihd-tech/CodeLifeBalance@v1 + with: + github-token: __DOLLAR__{{ secrets.GITHUB_TOKEN }} + username: __DOLLAR__{{ github.repository_owner }} + timezone: UTC + formats: svg,json,markdown + commit: "false" + ``` -## Private repository mode + ## Private repository mode -Private analysis is optional. Store your own fine-grained GitHub token in a repository secret such as `CODE_LIFE_TOKEN`, then use: + Private analysis is optional. Store your own fine-grained GitHub token in a repository secret such as `CODE_LIFE_TOKEN`, then use: -```yaml -- uses: alihd-tech/CodeLifeBalance@v1 - with: - github-token: ${{ secrets.CODE_LIFE_TOKEN }} - include-private: "true" -``` + ```yaml + - uses: alihd-tech/CodeLifeBalance@v1 + with: + github-token: __DOLLAR__{{ secrets.CODE_LIFE_TOKEN }} + include-private: "true" + ``` -The token remains inside your GitHub Actions environment and is used directly against the GitHub API. + The token remains inside your GitHub Actions environment and is used directly against the GitHub API. -## Stable release alias + ## Stable release alias -Use `alihd-tech/CodeLifeBalance@v1` for the current compatible v1 release. The exact immutable release is `v1.2.0`. + Use `alihd-tech/CodeLifeBalance@v1` for the current compatible v1 release. The exact immutable release is `v1.2.0`. -## Also included + ## Also included -- Local CLI distribution -- Browser-based workflow configurator -- Public username viewer -- Optional GitHub App foundation -- CI, typecheck, build, and published Action smoke tests + - Local CLI distribution + - Browser-based workflow configurator + - Public username viewer + - Optional GitHub App foundation + - CI, typecheck, build, and published Action smoke tests -## License + ## License -MIT -EOF + MIT + EOF + + sed -i 's/__DOLLAR__/$/g' release-notes.md gh release edit v1.2.0 \ --repo "$GITHUB_REPOSITORY" \