mirror of
https://github.com/actions/setup-java.git
synced 2026-06-27 23:50:01 +00:00
Compare commits
4 Commits
32c05c3a4a
...
98a38d1cca
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98a38d1cca | ||
|
|
16ef37f8dd | ||
|
|
d87ca55394 | ||
|
|
99163b5ebf |
22
.github/ISSUE_TEMPLATE/new_distribution_request.md
vendored
Normal file
22
.github/ISSUE_TEMPLATE/new_distribution_request.md
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
name: New Java distribution template
|
||||
about: Suggest a new Java distribution request
|
||||
title: ''
|
||||
labels: new-distribution
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
**Description:**
|
||||
Describe your proposal.
|
||||
|
||||
**Justification:**
|
||||
Justification or a use case for your proposal.
|
||||
|
||||
**Download URL:**
|
||||
Download URL for a new distribution
|
||||
|
||||
**License:**
|
||||
Link for license for a new distribution
|
||||
|
||||
**Are you willing to submit a PR?**
|
||||
<!--- We accept contributions! -->
|
||||
16
.github/new_distribution_pull_request_template.md
vendored
Normal file
16
.github/new_distribution_pull_request_template.md
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
**Description:**
|
||||
Describe your changes.
|
||||
|
||||
**Related issue:**
|
||||
Add link to the related issue.
|
||||
|
||||
**Download URL:**
|
||||
Download URL for a new distribution
|
||||
|
||||
**License:**
|
||||
Link for license for a new distribution
|
||||
|
||||
**Check list:**
|
||||
- [ ] Mark if documentation changes are required.
|
||||
- [ ] Mark if tests were added or updated to cover the changes.
|
||||
- [ ] Mark if new distribution is being added.
|
||||
4
dist/cleanup/index.js
vendored
4
dist/cleanup/index.js
vendored
@ -87931,9 +87931,11 @@ function getGitHubHttpHeaders() {
|
||||
const token = core.getInput('token');
|
||||
const auth = !token ? undefined : `token ${token}`;
|
||||
const headers = {
|
||||
authorization: auth,
|
||||
accept: 'application/vnd.github.VERSION.raw'
|
||||
};
|
||||
if (auth) {
|
||||
headers.authorization = auth;
|
||||
}
|
||||
return headers;
|
||||
}
|
||||
exports.getGitHubHttpHeaders = getGitHubHttpHeaders;
|
||||
|
||||
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
@ -125282,9 +125282,11 @@ function getGitHubHttpHeaders() {
|
||||
const token = core.getInput('token');
|
||||
const auth = !token ? undefined : `token ${token}`;
|
||||
const headers = {
|
||||
authorization: auth,
|
||||
accept: 'application/vnd.github.VERSION.raw'
|
||||
};
|
||||
if (auth) {
|
||||
headers.authorization = auth;
|
||||
}
|
||||
return headers;
|
||||
}
|
||||
exports.getGitHubHttpHeaders = getGitHubHttpHeaders;
|
||||
|
||||
@ -166,9 +166,13 @@ export function convertVersionToSemver(version: number[] | string) {
|
||||
export function getGitHubHttpHeaders(): OutgoingHttpHeaders {
|
||||
const token = core.getInput('token');
|
||||
const auth = !token ? undefined : `token ${token}`;
|
||||
|
||||
const headers: OutgoingHttpHeaders = {
|
||||
authorization: auth,
|
||||
accept: 'application/vnd.github.VERSION.raw'
|
||||
};
|
||||
|
||||
if (auth) {
|
||||
headers.authorization = auth;
|
||||
}
|
||||
return headers;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user