-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Bump version and changelog v2 | ||
on: | ||
push: | ||
|
||
|
||
jobs: | ||
bumpversion: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
outputs: | ||
version: 1.0.1 | ||
previous_tag: ${{ steps.tag_version.outputs.previous_tag }} | ||
bump_commit_sha: ${{ steps.bumpversion.outputs.commit_hash }} | ||
pr_number: ${{ steps.cpr.outputs.pull-request-number }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get next version | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
default_bump: 1.0.1 | ||
default_prerelease_bump: false | ||
dry_run: true | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Create bumpversion | ||
run: | | ||
pip install bump2version | ||
bump2version --new-version 1.0.1 setup.cfg tutoraspects/__about__.py .ci/config.yml | ||
- name: Update Changelog | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
latest-version: v1.0.1 | ||
release-notes: ${{ steps.tag_version.outputs.changelog }} | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} | ||
title: "chore: preparing release 1.0.1" | ||
commit-message: "chore: preparing release 1.0.1" | ||
branch: "bot/v1.0.1" | ||
base: main | ||
body: | | ||
Automated version bump for release 1.0.1. | ||
This pull request was automatically generated. It includes the following changes: | ||
- Version: v1.0.1 | ||
- Previous version: ${{ steps.tag_version.outputs.previous_tag }} | ||
${{ steps.tag_version.outputs.changelog }} | ||
No code changes are included in this pull request. The purpose of this PR is to trigger a version bump for the project. | ||
Once the pull request is merged, a new GitHub release will be created with the updated version. |