From 8443325329b11491672bc985a21239af9e24767d Mon Sep 17 00:00:00 2001 From: willdavsmith Date: Mon, 30 Dec 2024 08:58:28 -0800 Subject: [PATCH 1/2] Remove AWS CLI install Signed-off-by: willdavsmith --- .github/workflows/purge-aws-test-resources.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/purge-aws-test-resources.yaml b/.github/workflows/purge-aws-test-resources.yaml index e5cb97ca..62aec95e 100644 --- a/.github/workflows/purge-aws-test-resources.yaml +++ b/.github/workflows/purge-aws-test-resources.yaml @@ -17,11 +17,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install AWS CLI - run: | - sudo apt-get update - sudo apt-get install -y awscli - - name: Login to AWS run: | aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -35,6 +30,6 @@ jobs: - name: Create GitHub issue on failure if: failure() && github.event_name == 'schedule' run: | - gh issue create --title "Purge Purge AWS Test Resources workflow failed" \ + gh issue create --title "Purge AWS Test Resources workflow failed" \ --body "Test failed on ${{ github.repository }}. See [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details." \ --repo ${{ github.repository }} From 0a087bac7bec55ac69063bfce0a27a81b1d9e62e Mon Sep 17 00:00:00 2001 From: willdavsmith Date: Mon, 30 Dec 2024 09:01:37 -0800 Subject: [PATCH 2/2] Add workflow_dispatch to AWS runs Signed-off-by: willdavsmith --- .github/workflows/purge-aws-eks-clusters.yaml | 7 ++----- .github/workflows/purge-aws-rds-snapshots.yaml | 2 ++ .github/workflows/purge-aws-test-resources.yaml | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/purge-aws-eks-clusters.yaml b/.github/workflows/purge-aws-eks-clusters.yaml index 83eede03..8c795df9 100644 --- a/.github/workflows/purge-aws-eks-clusters.yaml +++ b/.github/workflows/purge-aws-eks-clusters.yaml @@ -1,6 +1,8 @@ name: Purge AWS EKS Clusters on: + workflow_dispatch: + # Allows manual triggering of the workflow schedule: # Runs every day at 7 AM - cron: "0 7 * * *" @@ -17,11 +19,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install AWS CLI - run: | - sudo apt-get update - sudo apt-get install -y awscli - - name: Install eksctl run: | curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp diff --git a/.github/workflows/purge-aws-rds-snapshots.yaml b/.github/workflows/purge-aws-rds-snapshots.yaml index 53a8ddce..75254a0f 100644 --- a/.github/workflows/purge-aws-rds-snapshots.yaml +++ b/.github/workflows/purge-aws-rds-snapshots.yaml @@ -1,5 +1,7 @@ name: Purge AWS RDS DBInstance snapshots on: + workflow_dispatch: + # Allows manual triggering of the workflow schedule: # Runs at 00:30 and 12:30 - cron: "30 0,12 * * *" diff --git a/.github/workflows/purge-aws-test-resources.yaml b/.github/workflows/purge-aws-test-resources.yaml index 62aec95e..9e3b43d7 100644 --- a/.github/workflows/purge-aws-test-resources.yaml +++ b/.github/workflows/purge-aws-test-resources.yaml @@ -1,6 +1,8 @@ name: Purge AWS Test Resources on: + workflow_dispatch: + # Allows manual triggering of the workflow schedule: # Runs every day at 5 AM - cron: "0 5 * * *"