Skip to content

Commit

Permalink
move commit-development version to a different job (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinayagarwal authored Jul 22, 2024
1 parent 78b911d commit 1f32dc4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/deploy.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 "[email protected]"
git config user.name "Gluon Bot"
Expand Down

0 comments on commit 1f32dc4

Please sign in to comment.