Skip to content

Commit cddaa33

Browse files
ci: fix poetry lock workflow for missing/blank file
Co-Authored-By: Aaron <AJ> Steers <aj@airbyte.io>
1 parent da77b94 commit cddaa33

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ jobs:
4444
with:
4545
pr: ${{ github.event.inputs.pr }}
4646

47+
- name: Check for blank or missing poetry.lock
48+
run: |
49+
if [ ! -s "poetry.lock" ]; then
50+
echo "poetry.lock missing or blank. Fetching from main branch..."
51+
git fetch origin main
52+
git checkout origin/main -- poetry.lock
53+
echo "Lock file restored from main."
54+
else
55+
echo "poetry.lock found. Proceeding."
56+
fi
57+
4758
- name: Get PR info
4859
id: pr-info
4960
run: |

0 commit comments

Comments
 (0)