Skip to content

Commit

Permalink
Login to the BSR for code generation (#179)
Browse files Browse the repository at this point in the history
In order to avoid lower rate limits, log in to the BSR.
  • Loading branch information
pkwarren authored Sep 13, 2024
1 parent 0e42d32 commit 80b0cf7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- uses: bufbuild/buf-action@v1
with:
setup_only: true
- env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
run: echo ${BUF_TOKEN} | buf registry login buf.build --token-stdin
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Lint
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- uses: bufbuild/buf-action@v1
with:
setup_only: true
- env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
run: echo ${BUF_TOKEN} | buf registry login buf.build --token-stdin
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Test conformance
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
distribution: 'temurin'
java-version: '21'

- uses: bufbuild/buf-action@v1
with:
setup_only: true
- env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
run: echo ${BUF_TOKEN} | buf registry login buf.build --token-stdin

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4

Expand Down

0 comments on commit 80b0cf7

Please sign in to comment.