From a83b3d3943aa3368e862d82690e28b3d3aed5359 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 14 Feb 2022 19:00:31 -0500 Subject: [PATCH] chore: Cleanup duplicate action runs (#370) --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a6184e4..3153f373 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,14 @@ on: - main jobs: + cleanup-runs: + runs-on: ubuntu-latest + if: "!startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, 'main')" + steps: + - uses: rokroskar/workflow-run-cleanup-action@v0.3.3 + env: + GITHUB_TOKEN: ${{ github.token }} + shellcheck: name: Run shellcheck runs-on: ubuntu-latest