diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-25 23:47:01 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-25 23:47:01 +0300 |
| commit | e0ed2cccf8f8f749feb1890e4f463645aabec5e6 (patch) | |
| tree | e11d638bda053a8f44ffed46a1dca38f2cc5b715 /.github/workflows | |
| parent | b073e7fd283c845b1547e323a9dbd5ee4b1d78c5 (diff) | |
ci: update latest manifest after release
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/release.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 608a662f..79d043ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -127,3 +127,34 @@ jobs: herdr-macos-x86_64/herdr-macos-x86_64 herdr-macos-aarch64/herdr-macos-aarch64 body_path: RELEASE_NOTES.md + + update-latest-json: + needs: release + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + ref: master + fetch-depth: 0 + + - name: Update website latest manifest + env: + GH_TOKEN: ${{ github.token }} + run: | + VERSION="${GITHUB_REF_NAME#v}" + CURRENT_VERSION=$(python3 -c 'import json; print(json.load(open("website/latest.json")).get("version", ""))') + if [ "$CURRENT_VERSION" = "$VERSION" ]; then + echo "website/latest.json is already at v$VERSION" + exit 0 + fi + python3 scripts/changelog.py sync-latest-json --version "$VERSION" --output website/latest.json + + - name: Commit website latest manifest + run: | + VERSION="${GITHUB_REF_NAME#v}" + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add website/latest.json + git diff --cached --quiet || git commit -m "docs: update website manifest for v$VERSION" + git push origin master |
