From 3e8e61bc5541f464039d858723ce3d802e042016 Mon Sep 17 00:00:00 2001 From: Joao Pedro Henrique Date: Wed, 28 Apr 2021 13:15:27 -0300 Subject: [PATCH] ci: add git login lerna --- .github/workflows/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 36df8b31..0ba39c6d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,6 +9,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Git Identity + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Yarn install run: yarn - name: Run tag @@ -16,6 +23,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} build-and-deploy-api: + needs: tag runs-on: ubuntu-latest steps: - name: Checkout @@ -37,6 +45,7 @@ jobs: HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} run: heroku container:release web -a mach-api build-and-deploy-front: + needs: tag runs-on: ubuntu-latest steps: - name: Checkout