Skip to content

Commit

Permalink
Pass buildbuddy_api_key into action
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrindel committed Nov 27, 2023
1 parent 57df950 commit 3d02e65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/configure_bazelrc/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
type: string
description: The path to the bazelrc file to use as the starting point.
default: '.bazelrc.ci'
buildbuddy_api_key:
type: string
description: Buildbuddy API key

runs:
using: composite
Expand All @@ -22,7 +25,7 @@ runs:
# TODO: Update with the correct tagged release.
- uses: tweag/configure-bazel-remote-cache-auth@fix_output
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
buildbuddy_api_key: ${{ inputs.buildbuddy_api_key }}
bazelrc_path: ${{ steps.create_bazelrc_tmp.bazelrc_tmp }}

- shell: bash
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
with:
nix_path: nixpkgs=./docs/nixpkgs.nix
- uses: ./.github/actions/configure_bazelrc
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
- name: Start remote Nix server
if: matrix.withNixRemote && matrix.os == 'ubuntu-latest'
run: |
Expand Down Expand Up @@ -82,6 +84,8 @@ jobs:
with:
nix_path: nixpkgs=./nixpkgs.nix
- uses: ./.github/actions/configure_bazelrc
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
- name: Build & test
run: |
skip() {
Expand Down

0 comments on commit 3d02e65

Please sign in to comment.