Skip to content

Commit 8463f0a

Browse files
Syaticlaude
andcommitted
Add git safe.directory and skip CI on non-Docker changes
- Set /workspace as safe.directory on shell init - Only trigger build on docker/, compose.yml, or workflow changes Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Entire-Checkpoint: e0157869acd0
1 parent e5e3d70 commit 8463f0a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build-push.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Build and Push
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- docker/**
8+
- compose.yml
9+
- .github/workflows/build-push.yml
610
workflow_dispatch:
711

812
env:

docker/profile.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
git config --global --add safe.directory /workspace
12
eval "$(git wt --init "${ZSH_VERSION:+zsh}" "${ZSH_VERSION:-bash}")"

0 commit comments

Comments
 (0)