Skip to content

Commit 1d19390

Browse files
Manas Srivastavaclaude
andcommitted
ci: cancel-in-progress + paths-ignore to save GH Actions minutes [skip ci]
Same pattern as api + worker. See InstaNode-dev/api commit for full rationale. The two changes match across all 3 backend repos. [skip ci] honored — no Deploy or CI run fires for this commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9084986 commit 1d19390

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,29 @@ name: CI
33
on:
44
push:
55
branches: [master]
6+
# CI-minute savings (2026-05-21): skip CI on docs-only commits.
7+
paths-ignore:
8+
- '**.md'
9+
- 'docs/**'
10+
- 'CLAUDE.md'
11+
- '.gitignore'
12+
- 'LICENSE'
13+
- 'BUGBASH-*/**'
614
pull_request:
715
branches: [master]
16+
paths-ignore:
17+
- '**.md'
18+
- 'docs/**'
19+
- 'CLAUDE.md'
20+
- '.gitignore'
21+
- 'LICENSE'
22+
- 'BUGBASH-*/**'
23+
24+
concurrency:
25+
# CI-minute savings (2026-05-21): cancel prior in-flight CI for the same
26+
# branch/PR when a new commit lands.
27+
group: ci-${{ github.workflow }}-${{ github.ref }}
28+
cancel-in-progress: true
829

930
jobs:
1031
# Stale-green guard. A PR can show a green CI run that was executed BEFORE a

.github/workflows/deploy.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,21 @@ name: Deploy
3232
on:
3333
push:
3434
branches: [master]
35+
# CI-minute savings (2026-05-21): skip Deploy on docs-only commits.
36+
paths-ignore:
37+
- '**.md'
38+
- 'docs/**'
39+
- 'CLAUDE.md'
40+
- '.gitignore'
41+
- 'LICENSE'
42+
- 'BUGBASH-*/**'
3543
workflow_dispatch:
3644

3745
concurrency:
38-
group: deploy-${{ github.workflow }}
39-
cancel-in-progress: false
46+
# CI-minute savings (2026-05-21): cancel prior in-flight Deploy when a
47+
# newer commit lands on the same branch.
48+
group: deploy-${{ github.workflow }}-${{ github.ref }}
49+
cancel-in-progress: true
4050

4151
permissions:
4252
contents: read

0 commit comments

Comments
 (0)