Skip to content

fix(ci): repack wheel/sdist for litestar-debug-toolbar name #5

fix(ci): repack wheel/sdist for litestar-debug-toolbar name

fix(ci): repack wheel/sdist for litestar-debug-toolbar name #5

Workflow file for this run

name: Changelog
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: "Tag to generate changelog for (e.g., v0.2.0)"
required: false
type: string
permissions:
contents: write
jobs:
# ==================================================================================== #
# UPDATE CHANGELOG (direct commit to main)
# ==================================================================================== #
update-changelog:
name: Update Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
token: ${{ secrets.CHANGELOG_PAT }}
persist-credentials: false
- name: Generate changelog
uses: orhun/git-cliff-action@d77b37db2e3f7398432d34b72a12aa3e2ba87e51 # v4.6.0
with:
config: pyproject.toml
args: --verbose
env:
OUTPUT: docs/changelog.md
GITHUB_REPO: ${{ github.repository }}
- name: Commit and push changelog
env:
TAG: ${{ inputs.tag || github.ref_name }}
GH_TOKEN: ${{ secrets.CHANGELOG_PAT }}
run: |
if git diff --quiet docs/changelog.md; then
echo "No changes to commit"
exit 0
fi
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
git checkout main
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add docs/changelog.md
git commit -m "docs: regenerate changelog for ${TAG}"
git push origin main