feat(aws-bedrock): update model YAMLs [bot] #107
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 Add PR | |
| on: | |
| pull_request_target: | |
| types: [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, 'add new models [bot]') || | |
| contains(github.event.pull_request.title, '[Community] Add model:')) && | |
| 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, 'add new models [bot]') || | |
| contains(github.event.pull_request.title, '[Community] Add model:')) && | |
| 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 |