Skip to content

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

fix(ci): skip auto-merge step when lockfile is unchanged

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