From 3a0a1a922f6661e4b564c7dcb866154c1fbaa8f8 Mon Sep 17 00:00:00 2001 From: Usame Algan Date: Wed, 9 Oct 2024 13:33:13 +0200 Subject: [PATCH] chore: move AWS CLI setup action to the main workflow --- .github/actions/setup-env/action.yml | 6 ------ .github/workflows/deployment.yml | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index b27d0df44..820a26719 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -27,12 +27,6 @@ runs: cache: 'yarn' cache-dependency-path: '**/yarn.lock' - - name: Env dependencies setup - shell: bash - run: | - sudo apt-get update - sudo apt-get -y install python3-pip python3-dev - pip install awscli --upgrade --user - name: Project dependencies setup, node version ${{ inputs.node-version }} shell: bash run: yarn install --frozen-lockfile diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 96f3c663f..6069c1e97 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -25,6 +25,9 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} fetch-depth: 0 + - name: AWS CLI setup + uses: aws-actions/setup-aws-cli@v2 + - uses: ./.github/actions/setup-env with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}