Skip to content

GitHub action to write / append content to a bazelrc file.

License

Notifications You must be signed in to change notification settings

tweag/write-bazelrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Write / update a bazelrc file

Continuous Integration

GitHub action to write / append content to a bazelrc file.

Usage

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

Inputs

Input Description Default
content The string that should be writtent to the bazelrc file.
bazelrc_path The path of the bazelrc file. .bazelrc.local

About

GitHub action to write / append content to a bazelrc file.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published