Reduce GitHub Actions usage

This removes the run on push for branches other than main, and
preemptively stops runs on the same ref
This commit is contained in:
Quentin Gliech
2022-07-04 15:45:08 +02:00
parent 6f7996da09
commit 68f631c127

View File

@@ -2,9 +2,14 @@ name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always