feat(together-ai): update model YAMLs [bot] #236
Workflow file for this run
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: Auto Test on Model Update PR | |
| on: | |
| pull_request_target: | |
| types: [opened, reopened, synchronize] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| comment: | |
| name: Comment /test-models | |
| runs-on: ubuntu-latest | |
| if: >- | |
| (contains(github.event.pull_request.title, '[Community] Update model:') || | |
| contains(github.event.pull_request.title, 'update model YAMLs [bot]')) && | |
| github.event.pull_request.head.repo.full_name == github.repository | |
| outputs: | |
| comment_id: ${{ steps.post.outputs.comment_id }} | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| steps: | |
| - name: Post status comment | |
| id: post | |
| run: | | |
| comment_id=$(gh api \ | |
| --method POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| "/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments" \ | |
| -f body='/test-models' \ | |
| --jq '.id') | |
| echo "comment_id=$comment_id" >> "$GITHUB_OUTPUT" | |
| echo "Posted status comment id=$comment_id" | |
| test: | |
| needs: comment | |
| if: >- | |
| (contains(github.event.pull_request.title, '[Community] Update model:') || | |
| contains(github.event.pull_request.title, 'update model YAMLs [bot]')) && | |
| github.event.pull_request.head.repo.full_name == github.repository | |
| uses: ./.github/workflows/test-changed-models-impl.yml | |
| with: | |
| pr_number: ${{ github.event.pull_request.number }} | |
| comment_id: ${{ needs.comment.outputs.comment_id }} | |
| secrets: inherit |