From 7546413fa60a37835f905a2ac9124cf8250f3ed2 Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Mon, 16 Sep 2024 22:46:13 +0200 Subject: [PATCH 1/2] action.yml: run on node20 (#828) --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ca232c9b..be853788 100644 --- a/action.yml +++ b/action.yml @@ -70,6 +70,6 @@ inputs: default: 'Update Gradle Wrapper from %sourceVersion% to %targetVersion%' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' post: 'dist/index.js' From b1f73fd284e1683fe39bbbbd345ac3b6a45cbef0 Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Mon, 16 Sep 2024 22:46:58 +0200 Subject: [PATCH 2/2] Add distributions-base-url input to README.md (#829) --- README.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 003e7cb1..84e66651 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Request](https://user-images.githubusercontent.com/316923/93274006-8922ef80-f7b9 - [`paths`](#paths) - [`paths-ignore`](#paths-ignore) - [`set-distribution-checksum`](#set-distribution-checksum) + - [`distributions-base-url`](#distributions-base-url) - [`release-channel`](#release-channel) - [`merge-method`](#merge-method) - [`pr-title-template`](#pr-title-template) @@ -396,6 +397,23 @@ with: --- +### `distributions-base-url` + +| Name | Description | Required | Default | +| --- | --- | --- | --- | +| `distributions-base-url` | Set a custom url to download the Gradle Wrapper zip file from. | No | (empty) | + +The base url to download the Gradle Wrapper zip file from. By default, the Gradle Wrapper update mechanism will download any newer version from the official repository. + +For example: + +```yaml +with: + distributions-base-url: 'https://your-domain.com/gradle-release' +``` + +--- + ### `release-channel` | Name | Description | Required | Default | @@ -433,10 +451,9 @@ with: This input is used for the title of the pull request created by this action. This allows, for example, for better integration into repositories which make use of commit message patterns like [Conventional Commits](https://www.conventionalcommits.org/). -`%sourceVersion%` and `%targetVersion%` will be replaced by the current/old and the new version of the Gradle Wrapper -respectively. +`%sourceVersion%` and `%targetVersion%` will be replaced by the current/old and the new version of the Gradle Wrapper respectively. -There are cases in which the source version of the Gradle Wrapper can not be determined successfully. In such cases, the string 'undefined' will be used to replace the source version placeholder. +There are cases in which the source version of the Gradle Wrapper can not be determined successfully. In such cases, the string `undefined` will be used to replace the source version placeholder. For example: @@ -454,10 +471,9 @@ with: This input is used for the message of the commit created by this action. This allows for better integration into repositories which make use of commit message patterns like [Conventional Commits](https://www.conventionalcommits.org/). -`%sourceVersion%` and `%targetVersion%` will be replaced by the current/old and the new version of the Gradle Wrapper -respectively. +`%sourceVersion%` and `%targetVersion%` will be replaced by the current/old and the new version of the Gradle Wrapper respectively. -There are cases in which the source version of the Gradle Wrapper can not be determined successfully. In such cases, the string 'undefined' will be used to replace the source version placeholder. +There are cases in which the source version of the Gradle Wrapper can not be determined successfully. In such cases, the string `undefined` will be used to replace the source version placeholder. For example: