GitHub action to write / append content to a bazelrc file.
By default, the action will create / update .bazelrc.local
.
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Write to default location (.bazelrc.local)
uses: tweag/write-bazelrc@v0
with:
content: |
build --config=foo
build --config=bar
You can customize the bazelrc path by specifying the bazelrc_path
parameter.
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Write to custom location
uses: tweag/write-bazelrc@v0
with:
bazelrc_path: .bazelrc.auth
content: |
build --config=foo
build --config=bar
Input | Description | Default |
---|---|---|
content |
The string that should be writtent to the bazelrc file. | |
bazelrc_path |
The path of the bazelrc file. | .bazelrc.local |