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 e5cb97ca..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 * * *" @@ -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: Login to AWS run: | aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -35,6 +32,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 }}