Skip to content

Commit 84dd3b7

Browse files
Copilotncrmro
andcommitted
feat: Run update-claude-code workflow on PR changes to verify build
Co-authored-by: ncrmro <8276365+ncrmro@users.noreply.github.com>
1 parent bffc386 commit 84dd3b7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/update-claude-code.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
# Run daily at 6 AM UTC
66
- cron: '0 6 * * *'
77
workflow_dispatch: # Allow manual trigger
8+
pull_request:
9+
paths:
10+
- 'nix/claude-code/**'
11+
- '.github/workflows/update-claude-code.yml'
812

913
jobs:
1014
update:
@@ -25,6 +29,7 @@ jobs:
2529
experimental-features = nix-command flakes
2630
2731
- name: Update claude-code package
32+
if: github.event_name != 'pull_request'
2833
id: update
2934
run: |
3035
# Script exits 0 if already at latest (no changes to commit)
@@ -35,12 +40,14 @@ jobs:
3540
echo "version=$VERSION" >> $GITHUB_OUTPUT
3641
3742
- name: Update flake.lock
43+
if: github.event_name != 'pull_request'
3844
run: nix flake update
3945

4046
- name: Verify build
4147
run: nix develop --command claude --version
4248

4349
- name: Create Pull Request
50+
if: github.event_name != 'pull_request'
4451
uses: peter-evans/create-pull-request@v7
4552
with:
4653
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)