diff --git a/.github/workflows/refresh-lockfile.yml b/.github/workflows/refresh-lockfile.yml index 9f28fc28..7d2c9e45 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: |