Skip to content

Commit 3183b22

Browse files
hyperpolymathclaude
andcommitted
ci: cut Actions burn — scope push triggers + concurrency-cancel
Workflows fired on bare `[push, pull_request]`, running twice per PR commit (branch push + PR synchronize). Scope push to [main, master] so PRs fire once; add concurrency cancel-in-progress (read-only PR checks). Reduces the Actions minute burn behind the estate spending-limit wall. No SPDX/logic changes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 53b5f4e commit 3183b22

6 files changed

Lines changed: 60 additions & 6 deletions

File tree

.github/workflows/guix-nix-policy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: Guix/Nix Package Policy
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
# Estate guardrail: scope push to default branches so a PR fires once (not
9+
# push+PR), and cancel superseded runs. Safe — read-only PR-triggered check.
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
413

514
permissions:
615
contents: read

.github/workflows/npm-bun-blocker.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: NPM/Bun Blocker
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
# Estate guardrail: scope push to default branches so a PR fires once (not
9+
# push+PR), and cancel superseded runs. Safe — read-only PR-triggered check.
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
413

514
permissions:
615
contents: read

.github/workflows/quality.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: Code Quality
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
# Estate guardrail: scope push to default branches so a PR fires once (not
9+
# push+PR), and cancel superseded runs. Safe — read-only PR-triggered check.
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
413

514

615
permissions:

.github/workflows/security-policy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: Security Policy
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
# Estate guardrail: scope push to default branches so a PR fires once (not
9+
# push+PR), and cancel superseded runs. Safe — read-only PR-triggered check.
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
413

514
permissions:
615
contents: read

.github/workflows/ts-blocker.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# SPDX-License-Identifier: MPL-2.0
22
name: TypeScript/JavaScript Blocker
3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
# Estate guardrail: scope push to default branches so a PR fires once (not
9+
# push+PR), and cancel superseded runs. Safe — read-only PR-triggered check.
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
413

514
permissions:
615
contents: read

.github/workflows/zig-ffi.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@
66
# ffi/zig/src/main.zig (the grep-based E2E job only checks source strings).
77
name: Zig FFI
88

9-
on: [push, pull_request]
9+
on:
10+
push:
11+
branches: [main, master]
12+
pull_request:
13+
14+
# Estate guardrail: scope push to default branches so a PR fires once (not
15+
# push+PR), and cancel superseded runs. Safe — read-only PR-triggered check.
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
1019

1120
permissions:
1221
contents: read

0 commit comments

Comments
 (0)