Skip to content

Commit 465f161

Browse files
author
github-actions
committed
Release 0.11.0
1 parent 438b351 commit 465f161

File tree

7 files changed

+82
-43
lines changed

7 files changed

+82
-43
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ and provides an advanced fine-grained caching to improve workflows performance.
66
## Usage
77

88
```yaml
9-
- uses: bazel-contrib/setup-bazel@0.10.0
9+
- uses: bazel-contrib/setup-bazel@0.11.0
1010
with:
1111
# Avoid downloading Bazel every time.
1212
bazelisk-cache: true
@@ -39,15 +39,15 @@ Default `""`.
3939
#### Install Bazelisk 1.x
4040

4141
```yaml
42-
- uses: bazel-contrib/setup-bazel@0.10.0
42+
- uses: bazel-contrib/setup-bazel@0.11.0
4343
with:
4444
bazelisk-version: 1.x
4545
```
4646

4747
#### Install exact Bazelisk version
4848

4949
```yaml
50-
- uses: bazel-contrib/setup-bazel@0.10.0
50+
- uses: bazel-contrib/setup-bazel@0.11.0
5151
with:
5252
bazelisk-version: 1.19.0
5353
```
@@ -67,15 +67,15 @@ Default `""`.
6767
#### Enable Bzlmod
6868

6969
```yaml
70-
- uses: bazel-contrib/setup-bazel@0.10.0
70+
- uses: bazel-contrib/setup-bazel@0.11.0
7171
with:
7272
bazelrc: common --enable_bzlmod
7373
```
7474

7575
#### Add colors and timestamps
7676

7777
```yaml
78-
- uses: bazel-contrib/setup-bazel@0.10.0
78+
- uses: bazel-contrib/setup-bazel@0.11.0
7979
with:
8080
bazelrc: |
8181
build --color=yes
@@ -97,15 +97,15 @@ Default `false`.
9797
#### Share a single disk cache
9898

9999
```yaml
100-
- uses: bazel-contrib/setup-bazel@0.10.0
100+
- uses: bazel-contrib/setup-bazel@0.11.0
101101
with:
102102
disk-cache: true
103103
```
104104

105105
#### Separate disk caches between workflows
106106

107107
```yaml
108-
- uses: bazel-contrib/setup-bazel@0.10.0
108+
- uses: bazel-contrib/setup-bazel@0.11.0
109109
with:
110110
disk-cache: ${{ github.workflow }}}
111111
```
@@ -129,15 +129,15 @@ Default `false`.
129129
#### Enable external repositories caches
130130

131131
```yaml
132-
- uses: bazel-contrib/setup-bazel@0.10.0
132+
- uses: bazel-contrib/setup-bazel@0.11.0
133133
with:
134134
external-cache: true
135135
```
136136

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

139139
```yaml
140-
- uses: bazel-contrib/setup-bazel@0.10.0
140+
- uses: bazel-contrib/setup-bazel@0.11.0
141141
with:
142142
external-cache: |
143143
manifest:
@@ -147,7 +147,7 @@ Default `false`.
147147
#### Do not cache Ruby on Windows
148148

149149
```yaml
150-
- uses: bazel-contrib/setup-bazel@0.10.0
150+
- uses: bazel-contrib/setup-bazel@0.11.0
151151
with:
152152
external-cache: |
153153
manifest:
@@ -167,7 +167,7 @@ Default `""`.
167167
#### Authenticate via key
168168

169169
```yaml
170-
- uses: bazel-contrib/setup-bazel@0.10.0
170+
- uses: bazel-contrib/setup-bazel@0.11.0
171171
with:
172172
google-credentials: ${{ secrets.GOOGLE_CLOUD_KEY }}
173173
```
@@ -190,7 +190,7 @@ Default is one of the following:
190190
#### Use `C` drive letter
191191

192192
```yaml
193-
- uses: bazel-contrib/setup-bazel@0.10.0
193+
- uses: bazel-contrib/setup-bazel@0.11.0
194194
with:
195195
output-base: C:/_bazel
196196
```
@@ -210,15 +210,15 @@ Default `false`.
210210
#### Store a single repository cache
211211

212212
```yaml
213-
- uses: bazel-contrib/setup-bazel@0.10.0
213+
- uses: bazel-contrib/setup-bazel@0.11.0
214214
with:
215215
repository-cache: true
216216
```
217217

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

220220
```yaml
221-
- uses: bazel-contrib/setup-bazel@0.10.0
221+
- uses: bazel-contrib/setup-bazel@0.11.0
222222
with:
223223
repository-cache: examples/gem/WORKSPACE
224224
```

dist/main/index.js

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ if (externalCacheConfig) {
129129
}
130130
}
131131

132+
const token = core.getInput('token')
133+
core.exportVariable('BAZELISK_GITHUB_TOKEN', token)
134+
132135
module.exports = {
133136
baseCacheKey,
134137
bazeliskCache: {
@@ -95701,6 +95704,14 @@ module.exports = require("node:assert");
9570195704

9570295705
/***/ }),
9570395706

95707+
/***/ 4573:
95708+
/***/ ((module) => {
95709+
95710+
"use strict";
95711+
module.exports = require("node:buffer");
95712+
95713+
/***/ }),
95714+
9570495715
/***/ 8474:
9570595716
/***/ ((module) => {
9570695717

@@ -95709,6 +95720,14 @@ module.exports = require("node:events");
9570995720

9571095721
/***/ }),
9571195722

95723+
/***/ 1708:
95724+
/***/ ((module) => {
95725+
95726+
"use strict";
95727+
module.exports = require("node:process");
95728+
95729+
/***/ }),
95730+
9571295731
/***/ 7075:
9571395732
/***/ ((module) => {
9571495733

@@ -97838,6 +97857,7 @@ exports.composeScalar = composeScalar;
9783897857
"use strict";
9783997858

9784097859

97860+
var node_process = __nccwpck_require__(1708);
9784197861
var directives = __nccwpck_require__(1342);
9784297862
var Document = __nccwpck_require__(3021);
9784397863
var errors = __nccwpck_require__(1464);
@@ -97971,7 +97991,7 @@ class Composer {
9797197991
}
9797297992
/** Advance the composer by one CST token. */
9797397993
*next(token) {
97974-
if (process.env.LOG_STREAM)
97994+
if (node_process.env.LOG_STREAM)
9797597995
console.dir(token, { depth: null });
9797697996
switch (token.type) {
9797797997
case 'directive':
@@ -99013,7 +99033,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
9901399033
if (atNewline) {
9901499034
if (comment)
9901599035
comment += token.source;
99016-
else
99036+
else if (!found || indicator !== 'seq-item-ind')
9901799037
spaceBefore = true;
9901899038
}
9901999039
else
@@ -100146,19 +100166,21 @@ exports.visitAsync = visit.visitAsync;
100146100166
/***/ }),
100147100167

100148100168
/***/ 7249:
100149-
/***/ ((__unused_webpack_module, exports) => {
100169+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
100150100170

100151100171
"use strict";
100152100172

100153100173

100174+
var node_process = __nccwpck_require__(1708);
100175+
100154100176
function debug(logLevel, ...messages) {
100155100177
if (logLevel === 'debug')
100156100178
console.log(...messages);
100157100179
}
100158100180
function warn(logLevel, warning) {
100159100181
if (logLevel === 'debug' || logLevel === 'warn') {
100160-
if (typeof process !== 'undefined' && process.emitWarning)
100161-
process.emitWarning(warning);
100182+
if (typeof node_process.emitWarning === 'function')
100183+
node_process.emitWarning(warning);
100162100184
else
100163100185
console.warn(warning);
100164100186
}
@@ -102334,6 +102356,7 @@ exports.LineCounter = LineCounter;
102334102356
"use strict";
102335102357

102336102358

102359+
var node_process = __nccwpck_require__(1708);
102337102360
var cst = __nccwpck_require__(3461);
102338102361
var lexer = __nccwpck_require__(361);
102339102362

@@ -102500,7 +102523,7 @@ class Parser {
102500102523
*/
102501102524
*next(source) {
102502102525
this.source = source;
102503-
if (process.env.LOG_TOKENS)
102526+
if (node_process.env.LOG_TOKENS)
102504102527
console.log('|', cst.prettyToken(source));
102505102528
if (this.atScalar) {
102506102529
this.atScalar = false;
@@ -103911,6 +103934,7 @@ exports.getTags = getTags;
103911103934
"use strict";
103912103935

103913103936

103937+
var node_buffer = __nccwpck_require__(4573);
103914103938
var Scalar = __nccwpck_require__(3301);
103915103939
var stringifyString = __nccwpck_require__(3069);
103916103940

@@ -103927,8 +103951,8 @@ const binary = {
103927103951
* document.querySelector('#photo').src = URL.createObjectURL(blob)
103928103952
*/
103929103953
resolve(src, onError) {
103930-
if (typeof Buffer === 'function') {
103931-
return Buffer.from(src, 'base64');
103954+
if (typeof node_buffer.Buffer === 'function') {
103955+
return node_buffer.Buffer.from(src, 'base64');
103932103956
}
103933103957
else if (typeof atob === 'function') {
103934103958
// On IE 11, atob() can't handle newlines
@@ -103946,11 +103970,11 @@ const binary = {
103946103970
stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
103947103971
const buf = value; // checked earlier by binary.identify()
103948103972
let str;
103949-
if (typeof Buffer === 'function') {
103973+
if (typeof node_buffer.Buffer === 'function') {
103950103974
str =
103951-
buf instanceof Buffer
103975+
buf instanceof node_buffer.Buffer
103952103976
? buf.toString('base64')
103953-
: Buffer.from(buf.buffer).toString('base64');
103977+
: node_buffer.Buffer.from(buf.buffer).toString('base64');
103954103978
}
103955103979
else if (typeof btoa === 'function') {
103956103980
let s = '';
@@ -106175,8 +106199,7 @@ async function downloadBazelisk() {
106175106199
filename = `${filename}.exe`
106176106200
}
106177106201

106178-
const token = core.getInput('token')
106179-
const octokit = github.getOctokit(token, {
106202+
const octokit = github.getOctokit(process.env.BAZELISK_GITHUB_TOKEN, {
106180106203
baseUrl: 'https://api.github.com'
106181106204
})
106182106205
const { data: releases } = await octokit.rest.repos.listReleases({

dist/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)