Skip to content

Commit

Permalink
ci: check for missing/blank poetry.lock and fetch from main
Browse files Browse the repository at this point in the history
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and aaronsteers committed Jan 28, 2025
1 parent 0eba8a9 commit d5cf8f5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/poetry-lock-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ jobs:
with:
pr: ${{ github.event.inputs.pr }}

- name: Check for blank or missing poetry.lock
run: |
if [ ! -s "poetry.lock" ]; then
echo "poetry.lock missing or blank. Fetching from main branch..."
git fetch origin main
git checkout origin/main -- poetry.lock
echo "Lock file restored from main."
else
echo "poetry.lock found. Proceeding."
fi
- name: Get PR info
id: pr-info
run: |
Expand Down

0 comments on commit d5cf8f5

Please sign in to comment.