Skip to content

Commit

Permalink
Release 0.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 4, 2024
1 parent a948e3e commit e403ad5
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 31 deletions.
26 changes: 13 additions & 13 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].4
- uses: bazel-contrib/[email protected].5
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].4
- uses: bazel-contrib/[email protected].5
with:
bazelisk-version: 1.x
```

#### Install exact Bazelisk version

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

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

#### Add colors and timestamps

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

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

#### Separate disk caches between workflows

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

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

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

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

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

```yaml
- uses: bazel-contrib/[email protected].4
- uses: bazel-contrib/[email protected].5
with:
google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }}
```
Expand All @@ -188,15 +188,15 @@ Default `false`.
#### Store a single repository cache

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

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

```yaml
- uses: bazel-contrib/[email protected].4
- uses: bazel-contrib/[email protected].5
with:
repository-cache: examples/gem/WORKSPACE
```
Expand Down
23 changes: 16 additions & 7 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92596,6 +92596,8 @@ class Lexer {
*/
*lex(source, incomplete = false) {
if (source) {
if (typeof source !== 'string')
throw TypeError('source is not a string');
this.buffer = this.buffer ? this.buffer + source : source;
this.lineEndPos = null;
}
Expand Down Expand Up @@ -92695,11 +92697,16 @@ class Lexer {
}
if (line[0] === '%') {
let dirEnd = line.length;
const cs = line.indexOf('#');
if (cs !== -1) {
let cs = line.indexOf('#');
while (cs !== -1) {
const ch = line[cs - 1];
if (ch === ' ' || ch === '\t')
if (ch === ' ' || ch === '\t') {
dirEnd = cs - 1;
break;
}
else {
cs = line.indexOf('#', cs + 1);
}
}
while (true) {
const ch = line[dirEnd - 1];
Expand Down Expand Up @@ -94469,7 +94476,7 @@ const floatNaN = {
identify: value => typeof value === 'number',
default: true,
tag: 'tag:yaml.org,2002:float',
test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: str => str.slice(-3).toLowerCase() === 'nan'
? NaN
: str[0] === '-'
Expand Down Expand Up @@ -94886,7 +94893,7 @@ const floatNaN = {
identify: value => typeof value === 'number',
default: true,
tag: 'tag:yaml.org,2002:float',
test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: (str) => str.slice(-3).toLowerCase() === 'nan'
? NaN
: str[0] === '-'
Expand Down Expand Up @@ -96078,7 +96085,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
if (keyComment) {
throw new Error('With simple keys, key nodes cannot have comments');
}
if (identity.isCollection(key)) {
if (identity.isCollection(key) || (!identity.isNode(key) && typeof key === 'object')) {
const msg = 'With simple keys, collection cannot be used as a key value';
throw new Error(msg);
}
Expand Down Expand Up @@ -96931,7 +96938,9 @@ async function downloadBazelisk() {
}

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

Large diffs are not rendered by default.

19 changes: 13 additions & 6 deletions dist/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91665,6 +91665,8 @@ class Lexer {
*/
*lex(source, incomplete = false) {
if (source) {
if (typeof source !== 'string')
throw TypeError('source is not a string');
this.buffer = this.buffer ? this.buffer + source : source;
this.lineEndPos = null;
}
Expand Down Expand Up @@ -91764,11 +91766,16 @@ class Lexer {
}
if (line[0] === '%') {
let dirEnd = line.length;
const cs = line.indexOf('#');
if (cs !== -1) {
let cs = line.indexOf('#');
while (cs !== -1) {
const ch = line[cs - 1];
if (ch === ' ' || ch === '\t')
if (ch === ' ' || ch === '\t') {
dirEnd = cs - 1;
break;
}
else {
cs = line.indexOf('#', cs + 1);
}
}
while (true) {
const ch = line[dirEnd - 1];
Expand Down Expand Up @@ -93538,7 +93545,7 @@ const floatNaN = {
identify: value => typeof value === 'number',
default: true,
tag: 'tag:yaml.org,2002:float',
test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: str => str.slice(-3).toLowerCase() === 'nan'
? NaN
: str[0] === '-'
Expand Down Expand Up @@ -93955,7 +93962,7 @@ const floatNaN = {
identify: value => typeof value === 'number',
default: true,
tag: 'tag:yaml.org,2002:float',
test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: (str) => str.slice(-3).toLowerCase() === 'nan'
? NaN
: str[0] === '-'
Expand Down Expand Up @@ -95147,7 +95154,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
if (keyComment) {
throw new Error('With simple keys, key nodes cannot have comments');
}
if (identity.isCollection(key)) {
if (identity.isCollection(key) || (!identity.isNode(key) && typeof key === 'object')) {
const msg = 'With simple keys, collection cannot be used as a key value';
throw new Error(msg);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/post/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.8.4",
"version": "0.8.5",
"description": "Install and configure Bazel for GitHub Actions",
"main": "index.js",
"engines": {
Expand Down

0 comments on commit e403ad5

Please sign in to comment.