Skip to content

Commit ebe0035

Browse files
authored
Merge pull request paperclipai#1316 from paperclipai/fix/lockfile-refresh-automerge-guard
fix(ci): skip auto-merge step when lockfile is unchanged
2 parents 036e2b5 + b05d0c5 commit ebe0035

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/refresh-lockfile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ jobs:
5151
fi
5252
5353
- name: Create or update pull request
54+
id: upsert-pr
5455
env:
5556
GH_TOKEN: ${{ github.token }}
5657
run: |
5758
if git diff --quiet -- pnpm-lock.yaml; then
5859
echo "Lockfile unchanged, nothing to do."
60+
echo "pr_created=false" >> "$GITHUB_OUTPUT"
5961
exit 0
6062
fi
6163
@@ -79,8 +81,10 @@ jobs:
7981
else
8082
echo "PR #$existing already exists, branch updated via force push."
8183
fi
84+
echo "pr_created=true" >> "$GITHUB_OUTPUT"
8285
8386
- name: Enable auto-merge for lockfile PR
87+
if: steps.upsert-pr.outputs.pr_created == 'true'
8488
env:
8589
GH_TOKEN: ${{ github.token }}
8690
run: |

0 commit comments

Comments
 (0)