Skip to content

Commit 4d43274

Browse files
committed
Rename the 'version' input to 'release-name'
1 parent 44dae0e commit 4d43274

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ None of these inputs is required, but you can add them to change the behavior of
7979

8080
**Recommended if you execute this action from GitHub-hosted MacOS runners or from [self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners)**. Because of [IP-address based rate limiting](https://github.com/actions/virtual-environments/issues/602), calling the GitHub API from any small pool of IPs, [including the GitHub-hosted MacOS runners](https://github.com/actions/runner-images/issues/602#issuecomment-602472951), can result in an error. To overcome this, provide the [`GITHUB_TOKEN`](https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token) to authenticate these calls. If you provide it, it will also be used to authenticate the commits made by this action.
8181

82-
### `version`
82+
### `release-name`
8383

84-
Set this input to use a [specific version of Google Java Format](https://github.com/google/google-java-format/releases). For example: `1.7`, `1.8`...
84+
Set this input to use a [specific release of Google Java Format](https://github.com/google/google-java-format/releases). For example: `1.7`, `v1.24.0`... If left empty, the latest version compatible with your JDK will be used.
8585

8686
### `files`
8787

action-types.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
type: string
99
skip-commit:
1010
type: boolean
11-
version:
11+
release-name:
1212
type: string
1313
github-token:
1414
type: string

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ inputs:
2020
description: "By default, this action commits any change made to the files. Set to \"true\" to skip this commit."
2121
required: false
2222
default: "false"
23-
version:
24-
description: "Version of Google Java Format to use"
23+
release-name:
24+
description: "Release name of Google Java Format to use. Examples: 1.7, v1.24.0... Leave empty to use the latest release compatible with your JDK."
2525
required: false
2626
github-token:
2727
description: "If provided, will be used to authenticate the calls to the GitHub API."

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35290,7 +35290,7 @@ class Main {
3529035290
const javaVersion = await this.getJavaVersion();
3529135291
// Get Google Java Format executable and save it to [executable]
3529235292
await core.group('Download Google Java Format', async () => {
35293-
const releaseName = getInput(['version']);
35293+
const releaseName = getInput(['release-name', 'version']);
3529435294
const release = await this.getReleaseData(javaVersion, releaseName);
3529535295
const downloadUrl = this.getDownloadUrl(release);
3529635296
await this.downloadExecutable(downloadUrl);

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class Main {
112112
const javaVersion = await this.getJavaVersion();
113113
// Get Google Java Format executable and save it to [executable]
114114
await core.group('Download Google Java Format', async () => {
115-
const releaseName = getInput(['version']);
115+
const releaseName = getInput(['release-name', 'version']);
116116
const release = await this.getReleaseData(javaVersion, releaseName);
117117
const downloadUrl = this.getDownloadUrl(release);
118118
await this.downloadExecutable(downloadUrl);

0 commit comments

Comments
 (0)