Skip to content

Commit

Permalink
fix: set release version in version.py (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk authored Nov 17, 2023
1 parent 481767e commit ac26dcf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
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

0 comments on commit ac26dcf

Please sign in to comment.