Browse Source

ci: add janitor (#6292)

* add janitor

* add workflow ids

* add comment
pull/6299/head
Marko 4 years ago
committed by GitHub
parent
commit
6a34fd8fc3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 8 deletions
  1. +16
    -0
      .github/workflows/janitor.yml
  2. +0
    -8
      .github/workflows/tests.yml

+ 16
- 0
.github/workflows/janitor.yml View File

@ -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 }}

+ 0
- 8
.github/workflows/tests.yml View File

@ -10,14 +10,6 @@ on:
- release/** - release/**
jobs: 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: build:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest


Loading…
Cancel
Save