chore(release): release 2025.05.27 #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Draft release | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, reopened, synchronize] | |
permissions: | |
contents: read | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/create-github-app-token@v2 | |
id: app-token | |
with: | |
app-id: ${{ vars.GHA_APP_ID }} | |
private-key: ${{ secrets.GHA_PRIVATE_KEY }} | |
- uses: actions/checkout@v4 | |
- name: Generate version | |
id: calver | |
run: | | |
export VERSION=$(date "+%Y.%m.%d") | |
echo "version=${VERSION}" >> "$GITHUB_OUTPUT" | |
- uses: release-drafter/release-drafter@v6 | |
id: release | |
with: | |
tag: ${{ steps.calver.outputs.version }} | |
name: ${{ steps.calver.outputs.version }} | |
version: ${{ steps.calver.outputs.version }} | |
env: | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
- name: Update changelog | |
if: ${{ steps.release.outputs.tag_name }} | |
uses: stefanzweifel/changelog-updater-action@v1 | |
with: | |
latest-version: ${{ steps.release.outputs.tag_name }} | |
release-notes: ${{ steps.release.outputs.body }} | |
hide-release-date: true | |
parse-github-usernames: true | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
add-paths: CHANGELOG.md | |
commit-message: "chore(release): release ${{ steps.release.outputs.tag_name }}" | |
title: "chore(release): release ${{ steps.release.outputs.tag_name }}" | |
body: "Update changelog with release notes for ${{ steps.release.outputs.tag_name }}." | |
branch: changelog | |
labels: changelog | |
token: ${{ steps.app-token.outputs.token }} |