Skip to content

Commit 029bca8

Browse files
authored
fix(ci): add unique branch names and import check (#7)
1 parent 1dabdca commit 029bca8

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/regenerate.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,20 @@ jobs:
4646
rm -f openapi.yaml
4747
rm -f .github/workflows/python.yml
4848
49+
- uses: actions/setup-python@v5
50+
with:
51+
python-version: '3.12'
52+
53+
- name: Verify generated client imports
54+
run: |
55+
pip install -r requirements.txt
56+
python -c "import hotdata"
57+
4958
- name: Create PR
5059
uses: peter-evans/create-pull-request@v6
5160
with:
5261
token: ${{ steps.app-token.outputs.token }}
5362
title: "chore: regenerate client from updated OpenAPI spec"
54-
branch: openapi-update
63+
branch: openapi-update-${{ github.run_id }}
5564
commit-message: "chore: regenerate client from OpenAPI spec"
5665
body: "Auto-generated from updated HotData OpenAPI spec."

0 commit comments

Comments
 (0)