Skip to content

Commit d9d93ab

Browse files
ci: fix poetry lock workflow for missing/blank file (#284)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Aaron <AJ> Steers <[email protected]>
1 parent 0eba8a9 commit d9d93ab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/poetry-lock-command.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ jobs:
3636
with:
3737
pr: ${{ github.event.inputs.pr }}
3838

39+
- name: Check for blank or missing poetry.lock
40+
run: |
41+
if [ ! -s "poetry.lock" ]; then
42+
echo "poetry.lock missing or blank. Fetching from main branch..."
43+
git fetch origin main
44+
git checkout origin/main -- poetry.lock
45+
echo "Lock file restored from main."
46+
else
47+
echo "poetry.lock found. Proceeding."
48+
fi
49+
3950
- name: Get PR info
4051
id: pr-info
4152
run: |

0 commit comments

Comments
 (0)