From adc8cdfd25ca04d03c179cadd1f68daf750f8dfa Mon Sep 17 00:00:00 2001 From: Topher Lubaway Date: Tue, 21 Jun 2022 14:27:46 -0500 Subject: [PATCH 1/3] Adds test for new workflow --- .github/workflows/terminate-zombie-build-instances.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terminate-zombie-build-instances.yml b/.github/workflows/terminate-zombie-build-instances.yml index 2fcdc4e5120f..152665e8eb33 100644 --- a/.github/workflows/terminate-zombie-build-instances.yml +++ b/.github/workflows/terminate-zombie-build-instances.yml @@ -4,6 +4,10 @@ name: Terminate Zombie Build Instances on: + push: + branches: +# for testing + - toph_fixes_zombie_pipeline workflow_dispatch: schedule: - cron: "0 */1 * * *" @@ -34,9 +38,10 @@ jobs: # See https://docs.aws.amazon.com/cli/latest/reference/ec2/terminate-instances.html for terminate command. echo $to_terminate | jq '.[] | .InstanceId' | xargs --no-run-if-empty --max-args=1 aws ec2 terminate-instances --instance-ids - + terminate-github-instances: + runs-on: ubuntu-latest steps: - - shell: List and Terminate GH actions in status 'offline' + - name: List and Terminate GH actions in status 'offline' env: GITHUB_PAT: ${{ secrets.OCTAVIA_PAT }} run: ./tools/bin/gh_action_zombie_killer From 377bd4f5203e69b2773a08bc242d2c0cde72349e Mon Sep 17 00:00:00 2001 From: Topher Lubaway Date: Tue, 21 Jun 2022 14:31:22 -0500 Subject: [PATCH 2/3] Adds airbyte repo --- .github/workflows/terminate-zombie-build-instances.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/terminate-zombie-build-instances.yml b/.github/workflows/terminate-zombie-build-instances.yml index 152665e8eb33..8025072fb3d1 100644 --- a/.github/workflows/terminate-zombie-build-instances.yml +++ b/.github/workflows/terminate-zombie-build-instances.yml @@ -41,6 +41,8 @@ jobs: terminate-github-instances: runs-on: ubuntu-latest steps: + - name: Checkout Airbyte + uses: actions/checkout@v2 - name: List and Terminate GH actions in status 'offline' env: GITHUB_PAT: ${{ secrets.OCTAVIA_PAT }} From be87514ffc9744ec85b59c71750a9d1f50ffa304 Mon Sep 17 00:00:00 2001 From: Topher Lubaway Date: Tue, 21 Jun 2022 14:50:55 -0500 Subject: [PATCH 3/3] remove testing line --- .github/workflows/terminate-zombie-build-instances.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/terminate-zombie-build-instances.yml b/.github/workflows/terminate-zombie-build-instances.yml index 8025072fb3d1..42901385695c 100644 --- a/.github/workflows/terminate-zombie-build-instances.yml +++ b/.github/workflows/terminate-zombie-build-instances.yml @@ -4,10 +4,6 @@ name: Terminate Zombie Build Instances on: - push: - branches: -# for testing - - toph_fixes_zombie_pipeline workflow_dispatch: schedule: - cron: "0 */1 * * *"