Skip to content

Commit

Permalink
ci(ci): do not run clean-up on draft prs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Nov 9, 2021
1 parent f4705c2 commit f0105cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -17,7 +17,10 @@ on:
jobs:
cleanup-runs:
name: Clean-Up Running Instances
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
if: >
github.event.pull_request.draft == false &&
!startsWith(github.ref, 'refs/tags/') &&
github.ref != 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
Expand Down

0 comments on commit f0105cf

Please sign in to comment.