Skip to content

Post-release version bump to 0.16.0-dev #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Release 0.16.0 (development release)

### Contributors

This release contains contributions from (in alphabetical order):

## Release 0.15.0 (current release)

### Contributors
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pre_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,48 @@
name: Pre-Release Version Bump

on:
push:
pull_request:
types:
- closed
branches:
- master
workflow_dispatch:

jobs:
pre_release_version_bump:
# Only trigger pre-release when PR other than post release is merged into main
if: github.event.pull_request.merged == true && github.head_ref != 'post-release-version-bump'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Derive versions
id: versions
run: |
old_version=`grep -oP '(?<=__version__ = ").*(?=")' pennylane_sphinx_theme/_version.py`
new_version=${old_version%-dev}

echo "old_version=$old_version" >> $GITHUB_OUTPUT
echo "new_version=$new_version" >> $GITHUB_OUTPUT

- name: Bump version in _version.py
run:
sed -i 's/${{ steps.versions.outputs.old_version }}/${{ steps.versions.outputs.new_version }}/' pennylane_sphinx_theme/_version.py

- name: Bump version in changelog
run: |
sed -i 's/ (current release)//' .github/CHANGELOG.md
sed -i 's/ (development release)/ (current release)/' .github/CHANGELOG.md

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
base: master
title: Pre-release version bump to `${{ steps.versions.outputs.new_version }}`
body: >
This PR bumps the PST version from `${{ steps.versions.outputs.old_version }}`
to `${{ steps.versions.outputs.new_version }}`.
commit-message: Bump version to `${{ steps.versions.outputs.new_version }}`
branch: pre-release-version-bump
reviewers: ashishks0522, Alan-eMartin, jontoye, AndrewGardhouse, doctorperceptron, josh146

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
2 changes: 1 addition & 1 deletion pennylane_sphinx_theme/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
using the following format: <major>.<minor>.<patch>[-<pre-release>].
"""

__version__ = "0.15.0"
__version__ = "0.16.0-dev"