diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db4d2b0c5..56be4f382 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/update_release_branch.yml b/.github/workflows/update_release_branch.yml new file mode 100644 index 000000000..f188f9a8d --- /dev/null +++ b/.github/workflows/update_release_branch.yml @@ -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