Skip to content

Commit

Permalink
CI: prevent multiple workflow runs on the same branch
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
KexyBiscuit committed Jul 19, 2024
1 parent 484b83d commit 35b5108
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Rust

on: [push, pull_request]
on:
push:
branches: [ main ]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down

0 comments on commit 35b5108

Please sign in to comment.