mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 10:29:58 +02:00
ci: avoid duplicate workflow runs on pull requests
Limit push triggers to master so PR branch updates only run once via pull_request, and cancel superseded in-progress runs with concurrency groups.
This commit is contained in:
8
.github/workflows/rust-core.yml
vendored
8
.github/workflows/rust-core.yml
vendored
@@ -8,6 +8,10 @@ on:
|
|||||||
- "crates/vnidrop/**"
|
- "crates/vnidrop/**"
|
||||||
- ".github/workflows/rust-core.yml"
|
- ".github/workflows/rust-core.yml"
|
||||||
push:
|
push:
|
||||||
|
# Only after merge (or direct master pushes). Feature-branch work is covered
|
||||||
|
# by pull_request so we do not run the same job twice on every PR update.
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
paths:
|
paths:
|
||||||
- "Cargo.toml"
|
- "Cargo.toml"
|
||||||
- "Cargo.lock"
|
- "Cargo.lock"
|
||||||
@@ -17,6 +21,10 @@ on:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: rust-core-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
quality:
|
quality:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
4
.github/workflows/shared-kmp.yml
vendored
4
.github/workflows/shared-kmp.yml
vendored
@@ -37,6 +37,10 @@ on:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: shared-kmp-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
jvm-test:
|
jvm-test:
|
||||||
# Host Rust embedding is enabled only for the current Gobley host target.
|
# Host Rust embedding is enabled only for the current Gobley host target.
|
||||||
|
|||||||
Reference in New Issue
Block a user