fix(ai): report cache-write tokens for OpenAI-compatible providers #5392
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 update changeset | |
| on: pull_request | |
| jobs: | |
| changeset: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.actor == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Get app token | |
| id: app-token | |
| uses: getsentry/action-github-app-token@97c9e23528286821f97fba885c1b1123284b29cc # v2.0.0 | |
| with: | |
| app_id: ${{ secrets.GH_APP_POSTHOG_JS_TESTS_APP_ID }} | |
| private_key: ${{ secrets.GH_APP_POSTHOG_JS_TESTS_PRIVATE_KEY }} | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Generate changeset | |
| uses: the-guild-org/changesets-dependencies-action@f11b16181c79e07d62b112c2f32c9db534a9df09 # v1.2.2 | |
| env: | |
| # this commits to the branch so we can't use the default GITHUB_TOKEN, otherwise Actions won't trigger | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} |