Skip to content

The open-source app everyone uses to manage agents at work

fix(ci): guard canary lockfile commit when regen matches HEAD (#7692)

Devin Foleyf85f606c5a49
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 1409e41a20..772f8a48a0 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -319,8 +319,10 @@ jobs:
git checkout -B master HEAD
if [ "$USED_ARTIFACT_LOCKFILE" = "1" ]; then
git add pnpm-lock.yaml
- git -c [email protected] -c user.name=CI \
- commit --no-verify -m "ci(canary): stage regenerated lockfile"
+ if ! git diff --cached --quiet; then
+ git -c [email protected] -c user.name=CI \
+ commit --no-verify -m "ci(canary): stage regenerated lockfile"
+ fi
else
git checkout -- pnpm-lock.yaml
fi