The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix: restore force push in lockfile refresh workflow
Dottaf2a0a0b80452
diff --git a/.github/workflows/refresh-lockfile.yml b/.github/workflows/refresh-lockfile.ymlindex 4da9d04715..a879e5bcf1 100644--- a/.github/workflows/refresh-lockfile.yml+++ b/.github/workflows/refresh-lockfile.yml@@ -63,18 +63,19 @@ jobs:git config user.name "lockfile-bot"git config user.email "[email protected]"- # Close any stale PR and delete the remote branch so we start fresh- existing=$(gh pr list --head "$BRANCH" --json number --jq '.[0].number')- if [ -n "$existing" ]; then- gh pr close "$existing" --delete-branch || true- fi-- git checkout -b "$BRANCH"+ git checkout -B "$BRANCH"git add pnpm-lock.yamlgit commit -m "chore(lockfile): refresh pnpm-lock.yaml"- git push origin "$BRANCH"+ git push --force origin "$BRANCH"- gh pr create \- --head "$BRANCH" \- --title "chore(lockfile): refresh pnpm-lock.yaml" \- --body "Auto-generated lockfile refresh after dependencies changed on master. This PR only updates pnpm-lock.yaml."+ # Create PR if one doesn't already exist+ existing=$(gh pr list --head "$BRANCH" --json number --jq '.[0].number')+ if [ -z "$existing" ]; then+ gh pr create \+ --head "$BRANCH" \+ --title "chore(lockfile): refresh pnpm-lock.yaml" \+ --body "Auto-generated lockfile refresh after dependencies changed on master. This PR only updates pnpm-lock.yaml."+ echo "Created new PR."+ else+ echo "PR #$existing already exists, branch updated via force push."+ fi