From 6a34fd8fc3e05f9540321e592ea8ff5f008c8321 Mon Sep 17 00:00:00 2001 From: Marko Date: Mon, 29 Mar 2021 13:38:26 +0000 Subject: [PATCH] ci: add janitor (#6292) * add janitor * add workflow ids * add comment --- .github/workflows/janitor.yml | 16 ++++++++++++++++ .github/workflows/tests.yml | 8 -------- 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/janitor.yml diff --git a/.github/workflows/janitor.yml b/.github/workflows/janitor.yml new file mode 100644 index 000000000..172ac07dd --- /dev/null +++ b/.github/workflows/janitor.yml @@ -0,0 +1,16 @@ +name: Janitor +# Janitor cleans up previous runs of various workflows +# To add more workflows to cancel visit https://api.github.com/repos/tendermint/tendermint/actions/workflows and find the actions name +on: + pull_request: + +jobs: + cancel: + name: "Cancel Previous Runs" + runs-on: ubuntu-latest + timeout-minutes: 3 + steps: + - uses: styfle/cancel-workflow-action@0.8.0 + with: + workflow_id: 1041851,1401230,2837803 + access_token: ${{ github.token }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index febdf33e9..5d978a3e2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,14 +10,6 @@ on: - release/** jobs: - cleanup-runs: - runs-on: ubuntu-latest - steps: - - uses: rokroskar/workflow-run-cleanup-action@master - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" - build: name: Build runs-on: ubuntu-latest