Exporting .mlapp files to .m files #416
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: export-mlapp-files | |
| run-name: Exporting .mlapp files to .m files | |
| on: [push] | |
| env: | |
| MLM_LICENSE_TOKEN: ${{ secrets.MLM_LICENSE_TOKEN }} | |
| jobs: | |
| export-mlapp-files: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Run python extract script | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Export mlapp files | |
| run: python export_mlapp.py | |
| - name: Remove temp files | |
| run: rm -rf ./matlab | |
| - name: Commit and Push to Repository | |
| run: | | |
| git config --local user.name "Github Action" | |
| git config --local user.email "action@github.com" | |
| git commit -am "Exported mlapp files" || exit 0 | |
| git push |