Chore: fix documentation URL #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Models | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-models: | |
name: Build Models | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.WORKFLOW_COMMIT_TOKEN }} | |
- name: 🐍 Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: 🌐 Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9 | |
- name: 📦 Install dependencies | |
run: | | |
pip install . | |
dotnet tool restore | |
- name: 🛠️ Build | |
run: python src/vbl_aquarium/build.py | |
- name: 🧹 Format | |
run: dotnet csharpier models/csharp | |
- name: ✅ Commit code format changes (on PR) | |
if: github.ref != 'refs/heads/main' | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore: Build Models" | |
- name: 📤 PR changes (on main) | |
if: github.ref == 'refs/heads/main' | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.PR_TOKEN }} | |
commit-message: "chore: Build Models" | |
title: "chore: Build Models" | |
branch: "build-models" | |
delete-branch: true |