Update eval.yml #14
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: eval-workflow | |
| on: | |
| push: | |
| # Workflow runs on push to any branch. | |
| schedule: | |
| - cron: "0 * * * *" # hourly | |
| # TODO(polina-c): add steps that run tests | |
| jobs: | |
| eval-job: | |
| runs-on: ubuntu-latest | |
| environment: eval | |
| steps: | |
| - name: Check that REPO_GEMINI_API_KEY is set and available | |
| env: | |
| GEMINI_API_KEY: ${{ secrets.REPO_GEMINI_API_KEY }} | |
| run: | | |
| if [ -z "$GEMINI_API_KEY" ]; then | |
| echo "ERROR: GEMINI_API_KEY is not set" | |
| exit 1 | |
| fi | |
| echo "GEMINI_API_KEY has ${#GEMINI_API_KEY} characters" | |