Skip to content
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

fix: set release version in version.py #24

Merged
merged 2 commits into from
Nov 17, 2023
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
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,3 @@ jobs:
token: ${{ steps.app-token.outputs.token }}
include-v-in-tag: false
pull-request-header: ''
bootstrap-sha: cb9e671b30bac5976c51300e820e95db74a8be0f
last-release-sha: 0001618fb3f5986f5b4033f98edee5baa7df5b89
29 changes: 29 additions & 0 deletions .github/workflows/update_release_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Auto update release version

on: # yamllint disable-line rule:truthy
push:
branches:
- release-please--branches--master

jobs:
set-version:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 # ratchet:actions/checkout@v3
- name: Set release version
id: set_release_version
env:
MAJOR: "1"
MINOR: "2"
PATCH: "3"
run: |
echo "$MAJOR $MINOR $PATCH"
file=$(find . -name "version.py")
sed -i "s/^VERSION .*$/VERSION = \"MAJOR.MINOR.PATCH\"/' $file
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: set release version
Loading