From ac7c937753221a37b05496bf22f88b2c9f9ac9f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Couralet?= Date: Sat, 1 May 2021 22:01:44 +0200 Subject: [PATCH] Add push new version after release --- .github/workflows/deploy-maven.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-maven.yml b/.github/workflows/deploy-maven.yml index fe34be1..1215d41 100644 --- a/.github/workflows/deploy-maven.yml +++ b/.github/workflows/deploy-maven.yml @@ -30,4 +30,14 @@ jobs: --no-transfer-progress \ --batch-mode \ -Dgpg.passphrase=${{ secrets.OSSRH_GPG_KEY_PASSWORD }} \ - clean deploy \ No newline at end of file + clean deploy + - id: push new version + name: push new version + run: | + git clone https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{github.repository}}.git + cd keycloak-mail-whitelisting + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + mvn -B versions:set -DnextSnapshot -DgenerateBackupPoms=false + git commit -a -m"Prepare new version" + git push \ No newline at end of file