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
  • Loading branch information
KexyBiscuit committed Jul 19, 2024
1 parent 484b83d commit 3ec5d5f
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 3ec5d5f

Please sign in to comment.