From 1f32dc48bbccc4768607d4d8f7ffe7e64ac50594 Mon Sep 17 00:00:00 2001 From: Abhinay Agarwal Date: Mon, 22 Jul 2024 18:31:54 +0530 Subject: [PATCH] move commit-development version to a different job (#1263) --- .github/workflows/{deploy.yml => release.yml} | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) rename .github/workflows/{deploy.yml => release.yml} (88%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/release.yml similarity index 88% rename from .github/workflows/deploy.yml rename to .github/workflows/release.yml index 7d8ebde1..4d9b0140 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,9 @@ on: jobs: release: - name: Deploy runs-on: ubuntu-latest + outputs: + deployment: ${{ steps.deploy.outputs.exit_code }} steps: - name: Checkout uses: actions/checkout@v4 @@ -45,8 +46,17 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} + commit-development-version: + runs-on: ubuntu-latest + needs: [ release ] + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 5 + persist-credentials: false - name: Commit next development version - if: steps.deploy.outputs.exit_code == 0 + if: needs.release.outputs.deployment == 0 run: | git config user.email "githubbot@gluonhq.com" git config user.name "Gluon Bot"