Pick Model Name from the Annotated Catalog Resource provided by the M… #386
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: CI | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| verify-dependencies: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Run generate.sh and verify dependencies | |
| run: | | |
| bash generate.sh | |
| if [[ ! -z $(git status -s) ]] | |
| then | |
| echo 'The script `./generate.sh` did introduce changes, which should ideally be checked in as part of the PR.' | |
| git status | |
| exit 1 | |
| fi | |
| yaml-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: yaml format | |
| run: | | |
| curl -L -O https://github.com/google/yamlfmt/releases/download/v0.15.0/yamlfmt_0.15.0_Linux_x86_64.tar.gz | |
| tar -xf yamlfmt_0.15.0_Linux_x86_64.tar.gz | |
| chmod +x yamlfmt | |
| ./yamlfmt -lint |