mirror of
https://github.com/actions/setup-java.git
synced 2026-07-02 18:41:53 +00:00
Compare commits
1 Commits
98a38d1cca
...
32c05c3a4a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32c05c3a4a |
4
dist/cleanup/index.js
vendored
4
dist/cleanup/index.js
vendored
@ -87931,11 +87931,9 @@ 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
@ -125282,11 +125282,9 @@ 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;
|
||||||
|
|||||||
@ -166,13 +166,9 @@ export function convertVersionToSemver(version: number[] | string) {
|
|||||||
export function getGitHubHttpHeaders(): OutgoingHttpHeaders {
|
export function getGitHubHttpHeaders(): OutgoingHttpHeaders {
|
||||||
const token = core.getInput('token');
|
const token = core.getInput('token');
|
||||||
const auth = !token ? undefined : `token ${token}`;
|
const auth = !token ? undefined : `token ${token}`;
|
||||||
|
|
||||||
const headers: OutgoingHttpHeaders = {
|
const headers: OutgoingHttpHeaders = {
|
||||||
|
authorization: auth,
|
||||||
accept: 'application/vnd.github.VERSION.raw'
|
accept: 'application/vnd.github.VERSION.raw'
|
||||||
};
|
};
|
||||||
|
|
||||||
if (auth) {
|
|
||||||
headers.authorization = auth;
|
|
||||||
}
|
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user