Skip to content

Commit

Permalink
Fix release commit message (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted authored Jan 15, 2025
1 parent 6018da7 commit 7f18e59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 79 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/python-uv-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
runs-on: ubuntu-22.04
# Map the job outputs to step outputs
outputs:
release-version: ${{ steps.bump-version.outputs.release-version }}
old-version: ${{ steps.bump-version.outputs.old-version }}
release-version: ${{ steps.bump-version-release.outputs.release-version }}
old-version: ${{ steps.bump-version-dev.outputs.old-version }}

steps:
- name: Install uv
Expand All @@ -82,13 +82,14 @@ jobs:
fetch-depth: 0 # required for changelog generation

- name: Bump version
id: bump-version-dev
uses: bakdata/ci-templates/actions/bump-version@v1.21.2
with:
release-type: ${{ inputs.release-type }}
working-directory: ${{ inputs.working-directory }}

- name: Bump version release
id: bump-version
id: bump-version-release
uses: bakdata/ci-templates/actions/bump-version@v1.21.2
with:
release-type: release --allow-dirty
Expand All @@ -103,24 +104,24 @@ jobs:
if: ${{ inputs.changelog }}
with:
github-token: ${{ secrets.github-token }}
tag: ${{ steps.bump-version.outputs.release-version }}
tag: ${{ steps.bump-version-release.outputs.release-version }}
changelog-file: ${{ inputs.changelog-file }}

- name: Commit and push changes including .bumpversion.cfg file
uses: bakdata/ci-templates/actions/commit-and-push@1.25.2
with:
ref: ${{ github.event.repository.default_branch }}
commit-message: "Bump version ${{ steps.bump-version.outputs.old-version }} → ${{ steps.bump-version.outputs.release-version }}"
commit-message: "Bump version ${{ steps.bump-version-dev.outputs.old-version }} → ${{ steps.bump-version-release.outputs.release-version }}"
github-username: ${{ secrets.github-username }}
github-email: ${{ secrets.github-email }}
github-token: ${{ secrets.github-token }}

- name: Tag and release
uses: bakdata/ci-templates/actions/tag-and-release@v1.22.0
with:
tag: "${{ steps.bump-version.outputs.release-version }}"
tag: "${{ steps.bump-version-release.outputs.release-version }}"
github-username: ${{ secrets.github-username }}
github-email: ${{ secrets.github-email }}
github-token: ${{ secrets.github-token }}
release-title: "${{ steps.bump-version.outputs.release-version }}"
release-title: "${{ steps.bump-version-release.outputs.release-version }}"
release-body: "${{ steps.build-changelog.outputs.single-changelog }}"
72 changes: 0 additions & 72 deletions cliff.toml

This file was deleted.

0 comments on commit 7f18e59

Please sign in to comment.