Skip to content

Commit 6ce376d

Browse files
committed
ci(deploy): skip deployments for graph-only commits
graphify-out is documentation about the repository and is not part of the SCP source list, so a commit that only refreshes the graph deploys byte-identical content and restarts the service for nothing. paths-ignore only skips the run when every changed path matches, so a commit touching both the graph and the app still deploys.
1 parent c7f2415 commit 6ce376d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
branches:
66
- main
7+
# The code graph is documentation about the repository, it is never shipped.
8+
# A commit that only refreshes it has nothing to deploy. Note that this only
9+
# skips the run when every changed path matches: a commit touching both the
10+
# graph and the app still deploys.
11+
paths-ignore:
12+
- 'graphify-out/**'
713

814
permissions:
915
contents: read

0 commit comments

Comments
 (0)