From 647574e2594497088d5c903761c631b692becad5 Mon Sep 17 00:00:00 2001 From: Harold Wanyama Date: Tue, 11 Jun 2024 19:50:08 +0300 Subject: [PATCH] Revert "Bug/CD Dev" --- .github/workflows/build-pr.yml | 12 +++++++----- .github/workflows/deploy-dev.yml | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 67d67b7bd..06eb0232b 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -41,11 +41,10 @@ jobs: ${{ runner.os }}-go- - name: Configure Git to clone private Github repos - run: | - echo PAT:${GH_PAT} - git config --global url."https://${GH_PAT}@github.com/".insteadOf "https://github.com/" + run: git config --global url."https://${TOKEN_USER}:${TOKEN}@github.com".insteadOf "https://github.com" env: - GH_PAT: ${{secrets.GH_PAT}} + TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + TOKEN_USER: ${{ secrets.PERSONAL_ACCESS_TOKEN_USER }} - name: Add OS Tools run: sudo apt update && sudo apt-get install file -y @@ -79,7 +78,10 @@ jobs: - name: Go Dependencies working-directory: cla-backend-go - run: make deps + run: | + go mod tidy + go mod download + make deps - name: Go Swagger Generate working-directory: cla-backend-go diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 1c0910d11..32b16c280 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -182,7 +182,7 @@ jobs: if [[ ! -f bin/backend-aws-lambda ]]; then echo "Missing bin/backend-aws-lambda binary file. Exiting..."; exit 1; fi if [[ ! -f bin/user-subscribe-lambda ]]; then echo "Missing bin/user-subscribe-lambda binary file. Exiting..."; exit 1; fi yarn install - sls deploy --force --stage ${STAGE} --region us-east-2 + yarn sls deploy --force --stage ${STAGE} --region us-east-2 - name: EasyCLA v2 Service Check run: |