From a8964149a1f0b0e7f9a18aff1ab68f23a37bab93 Mon Sep 17 00:00:00 2001 From: Danilo Piparo Date: Thu, 23 Jan 2025 17:44:05 +0100 Subject: [PATCH] Fetch a working version of the aws cli --- .github/workflows/continuous-integration-workflow.yml | 5 +++++ .github/workflows/delete-deployed-pr.yml | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 7bb1ac24..6e1a2162 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -67,6 +67,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install AWS CLI + run: | + python -m pip install --upgrade pip + pip install awscli==1.36.40 + - name: Sync to S3 if: ${{ env.SHOULD_DEPLOY == 'true' }} run: | diff --git a/.github/workflows/delete-deployed-pr.yml b/.github/workflows/delete-deployed-pr.yml index 649f1a03..5cf720c1 100644 --- a/.github/workflows/delete-deployed-pr.yml +++ b/.github/workflows/delete-deployed-pr.yml @@ -18,6 +18,12 @@ jobs: # PRs are only deployed if the PR branch is not in a fork if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} steps: + + - name: Install AWS CLI + run: | + python -m pip install --upgrade pip + pip install awscli==1.36.40 + - run: aws --endpoint-url https://s3.cern.ch s3 rm --recursive s3://root/${PR_NUMBER:?} env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}