Skip to content

Commit

Permalink
Release 0.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 7, 2025
1 parent 104a0a3 commit 529dbc2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ and provides an advanced fine-grained caching to improve workflows performance.
## Usage

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
Expand Down Expand Up @@ -39,15 +39,15 @@ Default `""`.
#### Install Bazelisk 1.x

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
bazelisk-version: 1.x
```

#### Install exact Bazelisk version

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
bazelisk-version: 1.19.0
```
Expand All @@ -67,15 +67,15 @@ Default `""`.
#### Enable Bzlmod

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
bazelrc: common --enable_bzlmod
```

#### Add colors and timestamps

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
bazelrc: |
build --color=yes
Expand All @@ -97,15 +97,15 @@ Default `false`.
#### Share a single disk cache

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
disk-cache: true
```

#### Separate disk caches between workflows

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
disk-cache: ${{ github.workflow }}}
```
Expand All @@ -129,15 +129,15 @@ Default `false`.
#### Enable external repositories caches

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
external-cache: true
```

#### Cache NPM repositories based on `package-lock.json` contents

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
external-cache: |
manifest:
Expand All @@ -147,7 +147,7 @@ Default `false`.
#### Do not cache Ruby on Windows

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
external-cache: |
manifest:
Expand All @@ -167,7 +167,7 @@ Default `""`.
#### Authenticate via key

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }}
```
Expand All @@ -190,7 +190,7 @@ Default is one of the following:
#### Use `C` drive letter

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
output-base: C:/_bazel
```
Expand All @@ -210,15 +210,15 @@ Default `false`.
#### Store a single repository cache

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
repository-cache: true
```

#### Store a repository cache from a custom location

```yaml
- uses: bazel-contrib/[email protected].0
- uses: bazel-contrib/[email protected].1
with:
repository-cache: examples/gem/WORKSPACE
```
Expand Down
3 changes: 2 additions & 1 deletion dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106199,7 +106199,8 @@ async function downloadBazelisk() {
filename = `${filename}.exe`
}

const octokit = github.getOctokit(process.env.BAZELISK_GITHUB_TOKEN, {
const token = process.env.BAZELISK_GITHUB_TOKEN
const octokit = github.getOctokit(token, {
baseUrl: 'https://api.github.com'
})
const { data: releases } = await octokit.rest.repos.listReleases({
Expand Down
2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-bazel",
"version": "0.12.0",
"version": "0.12.1",
"description": "Install and configure Bazel for GitHub Actions",
"main": "index.js",
"engines": {
Expand Down

0 comments on commit 529dbc2

Please sign in to comment.