From 39eeace9218865532204c43ca4d588087f98f8ef Mon Sep 17 00:00:00 2001 From: Fried Hoeben Date: Thu, 31 Mar 2022 23:03:43 +0200 Subject: [PATCH] Update github action to ensure we push non-snapshot pom.xml before tagging version - part 2 --- .github/workflows/master.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index b590f2a..84ab35d 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -58,6 +58,17 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} exclude_types: other,doc,chore + - name: Configure git + run: | + git config --global user.email "fhoeben-github@hsac.nl" + git config --global user.name "GitHub Action" + + - name: Commit pom.xml without -SNAPSHOT + run: | + git add pom.xml + git commit -m "Prepare for release" + git push origin master + - name: Create Release id: createRelease uses: softprops/action-gh-release@v1