Skip to content
This repository was archived by the owner on Sep 20, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 11 additions & 16 deletions .github/workflows/generate-model-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,21 @@ jobs:
exit 1
fi

- name: Commit and push changes
if: github.event_name != 'pull_request'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"

if [ -n "$(git status --porcelain docs/model_config.js)" ]; then
git add docs/model_config.js
git commit -m "🤖 Auto-update model configuration
- name: Deploy to GitHub Pages
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
destination_dir: .
keep_files: true
commit_message: |
🤖 Auto-update model configuration

- Generated from EMD Python model definitions
- Updated at: $(date -u '+%Y-%m-%d %H:%M:%S UTC')
- Triggered by: ${{ github.event_name }}
- Commit: ${{ github.sha }}"

git push
echo "✅ Model configuration updated and committed"
else
echo "ℹ️ No changes to model configuration"
fi
- Source commit: ${{ github.sha }}

- name: Upload model config as artifact
uses: actions/upload-artifact@v4
Expand Down