mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
chore: rebuild action
This commit is contained in:
parent
86039b0e74
commit
5f9ce8480a
2 changed files with 6 additions and 2 deletions
4
dist/cleanup/index.js
vendored
4
dist/cleanup/index.js
vendored
|
@ -90213,9 +90213,11 @@ function getGitHubHttpHeaders() {
|
||||||
const token = core.getInput('token');
|
const token = core.getInput('token');
|
||||||
const auth = !token ? undefined : `token ${token}`;
|
const auth = !token ? undefined : `token ${token}`;
|
||||||
const headers = {
|
const headers = {
|
||||||
authorization: auth,
|
|
||||||
accept: 'application/vnd.github.VERSION.raw'
|
accept: 'application/vnd.github.VERSION.raw'
|
||||||
};
|
};
|
||||||
|
if (auth) {
|
||||||
|
headers.authorization = auth;
|
||||||
|
}
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
exports.getGitHubHttpHeaders = getGitHubHttpHeaders;
|
exports.getGitHubHttpHeaders = getGitHubHttpHeaders;
|
||||||
|
|
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -127471,9 +127471,11 @@ function getGitHubHttpHeaders() {
|
||||||
const token = core.getInput('token');
|
const token = core.getInput('token');
|
||||||
const auth = !token ? undefined : `token ${token}`;
|
const auth = !token ? undefined : `token ${token}`;
|
||||||
const headers = {
|
const headers = {
|
||||||
authorization: auth,
|
|
||||||
accept: 'application/vnd.github.VERSION.raw'
|
accept: 'application/vnd.github.VERSION.raw'
|
||||||
};
|
};
|
||||||
|
if (auth) {
|
||||||
|
headers.authorization = auth;
|
||||||
|
}
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
exports.getGitHubHttpHeaders = getGitHubHttpHeaders;
|
exports.getGitHubHttpHeaders = getGitHubHttpHeaders;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue