Skip to content

Commit 30db49b

Browse files
fix(ci): add missing checkout step to cowork-auto-pr.yml (gh pr create requires local git repo)
1 parent 0af72ab commit 30db49b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/cowork-auto-pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ jobs:
1212
ensure-pr:
1313
runs-on: ubuntu-latest
1414
steps:
15+
# gh pr create requires a local git checkout to diff head against base;
16+
# without this step every run failed with "not a git repository" and no
17+
# PR was ever opened (fleet-wide defect: 11/11 seeded copies lacked it).
18+
- name: Check out the pushed branch
19+
uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.ref_name }}
22+
fetch-depth: 0
1523
- name: Open PR for this branch if none exists
1624
env:
1725
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)