From c7d6aac0393f56d85ee81da40996139eb3cc0042 Mon Sep 17 00:00:00 2001 From: Adam Curtis Date: Fri, 13 Oct 2023 11:45:01 -0400 Subject: [PATCH] add cleanup job to nightly test workflow --- .github/workflows/test-nightly.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-nightly.yml b/.github/workflows/test-nightly.yml index 14509d403..8013c26c9 100644 --- a/.github/workflows/test-nightly.yml +++ b/.github/workflows/test-nightly.yml @@ -26,4 +26,18 @@ jobs: releaseVersion: ${{ github.event.client_payload.tagName }} testRunnerOptions: -E 'kind(test)' secrets: - CLOUDTRUTH_API_KEY: ${{ secrets.CT_STAGING_CI_ADMIN_API_KEY }} \ No newline at end of file + CLOUDTRUTH_API_KEY: ${{ secrets.CT_STAGING_CI_ADMIN_API_KEY }} + + cleanup-nightly: + name: Nightly Cleanup + needs: test-nightly + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + repository: cloudtruth/cloudtruth-cli + + - run: sh cicd/scripts/install-rust.sh + + - run: cargo xtask cleanup --confirm cli-test