From bca050c033240c46595ae50a22158668b4e95318 Mon Sep 17 00:00:00 2001 From: azerr Date: Mon, 26 Aug 2024 09:44:37 +0200 Subject: [PATCH] Implement post-release version bump. Signed-off-by: azerr --- .github/workflows/release.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a23e15f9..7fee02be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: release +name: Build & Release VS Code Quarkus on: schedule: @@ -156,3 +156,21 @@ jobs: if: ${{ github.event_name == 'schedule' || inputs.publishToOVSX == 'true' || inputs.publishPreRelease == 'true' }} run: | ovsx publish -p ${{ secrets.OVSX_MARKETPLACE_TOKEN }} --packagePath vscode-quarkus/vscode-quarkus-*-${GITHUB_RUN_NUMBER}.vsix + post-release-job: + if: ${{ inputs.publishToMarketPlace == 'true' && inputs.publishToOVSX == 'true' }} + runs-on: ubuntu-latest + needs: release-job + steps: + - name: Check Out VS Code Quarkus + uses: actions/checkout@v4 + - name: Set Up NodeJS + uses: actions/setup-node@v4 + with: + node-version: '18' + - name: Upversion for Development + run: | + tag=`npm version --no-git-tag-version patch` + git config --global user.email "vscode-quarkus-bot@users.noreply.github.com" + git config --global user.name "vscode-quarkus-bot" + git commit -am "Upversion to ${tag#v}" + git push origin