feat: Add database migrations for smooth version upgrades #169
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: Infer | |
| on: | |
| issues: | |
| types: | |
| - opened | |
| - edited | |
| issue_comment: | |
| types: | |
| - created | |
| permissions: | |
| issues: write | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| infer: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Generate GitHub App Token | |
| uses: actions/create-github-app-token@v2.2.0 | |
| id: app_token | |
| with: | |
| app-id: ${{ secrets.INFER_APP_ID }} | |
| private-key: ${{ secrets.INFER_APP_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| repositories: | | |
| ${{ github.event.repository.name }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| token: ${{ steps.app_token.outputs.token }} | |
| - name: Set up Go | |
| uses: actions/setup-go@v6.1.0 | |
| with: | |
| go-version-file: 'go.mod' | |
| cache: true | |
| - name: Install golangci-lint | |
| run: | | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v2.6.2 | |
| - name: Install task | |
| run: | | |
| curl -s https://taskfile.dev/install.sh | sh -s -- -b /usr/local/bin v3.45.5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 'lts/*' | |
| - name: Install additional dependencies | |
| run: npm install -g markdownlint-cli | |
| - name: Install pre-commit | |
| run: | | |
| pip install pre-commit | |
| task precommit:install | |
| - name: Run Infer Agent | |
| uses: inference-gateway/infer-action@main | |
| with: | |
| github-token: ${{ steps.app_token.outputs.token }} | |
| trigger-phrase: "@infer" | |
| model: deepseek/deepseek-chat | |
| max-turns: 50 | |
| anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| openai-api-key: ${{ secrets.OPENAI_API_KEY }} | |
| google-api-key: ${{ secrets.GOOGLE_API_KEY }} | |
| deepseek-api-key: ${{ secrets.DEEPSEEK_API_KEY }} | |
| groq-api-key: ${{ secrets.GROQ_API_KEY }} | |
| mistral-api-key: ${{ secrets.MISTRAL_API_KEY }} | |
| cloudflare-api-key: ${{ secrets.CLOUDFLARE_API_KEY }} | |
| cohere-api-key: ${{ secrets.COHERE_API_KEY }} | |
| ollama-api-key: ${{ secrets.OLLAMA_API_KEY }} | |
| ollama-cloud-api-key: ${{ secrets.OLLAMA_CLOUD_API_KEY }} |