From ab4369b1f8b5a39401f9a1a80467d434022d49e0 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Wed, 18 Oct 2023 09:58:28 +0200 Subject: [PATCH] workflow --- .github/workflows/release_deploy.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/release_deploy.yml b/.github/workflows/release_deploy.yml index 052ec97..fd25fa2 100644 --- a/.github/workflows/release_deploy.yml +++ b/.github/workflows/release_deploy.yml @@ -38,6 +38,27 @@ jobs: semver: 'minor' current_version: ${{ env.version }} + - name: Push New Version + shell: bash + run: | + echo ${{ steps.bump_version.outputs.new_version }} > ./version.txt + git add . + git config --global user.email "github-bot@pagopa.it" + git config --global user.name "pagopa-github-bot" + git commit -m "Bump to version ${{ steps.bump_version.outputs.new_version }} [skip ci]" || exit 0 + git push origin ${{ github.ref_name }} + + - name: Create Release + uses: ncipollo/release-action@v1.12.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + commit: ${{ github.ref_name }} + tag: ${{ steps.bump_version.outputs.new_version }} + name: Release ${{ steps.bump_version.outputs.new_version }} + makeLatest: latest + generateReleaseNotes: true + - name: Build and Push id: semver uses: pagopa/github-actions-template/ghcr-build-push@v1.5.4