Merge pull request #1316 from paperclipai/fix/lockfile-refresh-automerge-guard

fix(ci): skip auto-merge step when lockfile is unchanged
This commit is contained in:
Devin Foley
2026-03-20 16:58:03 -07:00
committed by GitHub

View File

@@ -51,11 +51,13 @@ jobs:
fi fi
- name: Create or update pull request - name: Create or update pull request
id: upsert-pr
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
run: | run: |
if git diff --quiet -- pnpm-lock.yaml; then if git diff --quiet -- pnpm-lock.yaml; then
echo "Lockfile unchanged, nothing to do." echo "Lockfile unchanged, nothing to do."
echo "pr_created=false" >> "$GITHUB_OUTPUT"
exit 0 exit 0
fi fi
@@ -79,8 +81,10 @@ jobs:
else else
echo "PR #$existing already exists, branch updated via force push." echo "PR #$existing already exists, branch updated via force push."
fi fi
echo "pr_created=true" >> "$GITHUB_OUTPUT"
- name: Enable auto-merge for lockfile PR - name: Enable auto-merge for lockfile PR
if: steps.upsert-pr.outputs.pr_created == 'true'
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
run: | run: |