Skip to content

update chat/completions endpoint to allow passing a stream boolean, a… #43

update chat/completions endpoint to allow passing a stream boolean, a…

update chat/completions endpoint to allow passing a stream boolean, a… #43

Workflow file for this run

name: Goreleaser Publish
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
- name: Setup Google service account creds
id: setup-google
run: |
echo "${{ secrets.GOOGLE_SERVICE_ACCOUNT_CREDS_JSON_BASE64 }}" | base64 -d > /tmp/gcp_key.json
- name: Run GoReleaser
id: goreleaser
uses: goreleaser/goreleaser-action@v6
with:
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOGLE_APPLICATION_CREDENTIALS: "/tmp/gcp_key.json"
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
- name: Trigger update-dev-formula workflow
run: |
version=$(echo '${{ steps.goreleaser.outputs.metadata }}' | jq -r ".version")
echo "Version is $version"
curl -L -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: bearer ${{ secrets.JEN_PAT }}" \
https://api.github.com/repos/pinecone-io/homebrew-pinecone/actions/workflows/update-dev-formula.yaml/dispatches \
-d "{\"ref\": \"main\", \"inputs\": {\"version\":\"$version\"}}"