From ae9727410e4f60bded6ffb2f413fb4fcae22d6fd Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 4 Sep 2021 18:58:22 +0000 Subject: [PATCH] ci(ci): replace workflow-run-cleanup-action with github concurrency (#36) --- .github/workflows/ci.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04835c1..26b1ffa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,16 +14,11 @@ on: - "docs/**" - "*.md" -jobs: - cleanup-runs: - name: Clean-Up Running Instances - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" - runs-on: ubuntu-latest - steps: - - uses: rokroskar/workflow-run-cleanup-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +concurrency: + group: github.ref + cancel-in-progress: ${{ github.event_name == 'pull_request' }} +jobs: lint: name: Lint Code if: github.event.pull_request.draft == false