This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
Change to Vertex AI from Open AI #854
Workflow file for this run
This file contains 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: OpenAI Reviewer | |
permissions: | |
contents: read | |
pull-requests: write | |
id-token: 'write' | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
pull_request_review_comment: | |
types: [created] | |
concurrency: | |
group: | |
${{ github.repository }}-${{ github.event.number || github.head_ref || | |
github.sha }}-${{ github.workflow }}-${{ github.event_name == | |
'pull_request_review_comment' && 'pr_comment' || 'pr' }} | |
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }} | |
jobs: | |
review: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Authenticate to Google Cloud | |
uses: google-github-actions/auth@v2 | |
with: | |
# workload_identity_provider: projects/636924443032/locations/global/workloadIdentityPools/github-pool/providers/github-provider | |
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }} | |
project_id: sandbox-toga4-vertexai | |
# - uses: ./ | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# with: | |
# debug: true | |
# language: ja-JP | |
# vertexai_project_id: sandbox-toga4-vertexai | |
# vertexai_location: asia-northeast1 |