Skip to content

Commit 55ae19f

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 8c4dea3 commit 55ae19f

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/language-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: Language Policy Enforcement
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
permissions: contents: read
514
jobs:
615
check:

.github/workflows/rescript-deno-ci.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: ReScript/Deno CI
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
permissions: contents: read
514

615
jobs:

0 commit comments

Comments
 (0)