Generate Model Browser #1869
This file contains hidden or 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: Generate Model Browser | |
| on: | |
| schedule: | |
| - cron: "0 */6 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| run-julia: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Julia | |
| uses: julia-actions/setup-julia@v1 | |
| with: | |
| version: '1' | |
| - name: Run Julia script | |
| run: julia src/lib/Data/write.jl | |
| - name: Commit and push changes | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
| git add src/lib/Data/model_browser.md | |
| echo "Checking to see if there is something to commit. " | |
| if ! git diff --staged --quiet; then | |
| git commit -m "⬆️ Update Model Browser from MLJ.jl" | |
| git push | |
| else | |
| echo "No changes to commit. Skipping." | |
| fi |