From 89cf90988833e0845368461beffa3cbc436f25de Mon Sep 17 00:00:00 2001 From: Leifer Mendez Date: Wed, 11 Jan 2023 20:40:41 +0100 Subject: [PATCH] ci: :fire: fix github action --- .github/workflows/releases-dev.yml | 12 +++++------- .github/workflows/releases.yml | 9 +++++---- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/releases-dev.yml b/.github/workflows/releases-dev.yml index 6901587..4e5c169 100644 --- a/.github/workflows/releases-dev.yml +++ b/.github/workflows/releases-dev.yml @@ -50,10 +50,8 @@ jobs: - name: Release @bot-whatsapp/portal run: yarn node ./scripts/release.js --name=portal --version= --token="${{ secrets.NPM_TOKEN }}" - - name: GIT commit and push all changed files - if: github.event_name == 'push' - run: | - git config --global user.email "leifer.contacto@gmail.com" - git config --global user.name "Leifer Mendez" - git commit -a -m 'chore(version): dev release 🫡' - git push origin dev + - name: Commit Versioning & Push changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: 'ci(version): :zap: automatic - "${date}" updated versions every packages' + branch: dev diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 343164e..aab4756 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -67,8 +67,9 @@ jobs: - name: Release Github run: yarn node ./scripts/github.js --version="${{ steps.package-version.outputs.current-version}}" --token="${{ secrets.OCTO_TOKEN }}" - - name: GIT commit and push all changed files + - name: Commit Versioning & Push changes if: github.event_name == 'push' - run: | - git commit -a -m 'chore(version): launch release 🚀 "${{ steps.package-version.outputs.current-version}}"' - git push origin dev + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: 'chore(version): launch release 🚀 "${{ steps.package-version.outputs.current-version}}"' + branch: dev