From 235d9fd2f33c94666ea3bd12ddebac39ef94762d Mon Sep 17 00:00:00 2001 From: Mqx <62719703+Mqxx@users.noreply.github.com> Date: Mon, 21 Oct 2024 22:06:35 +0200 Subject: [PATCH] refactor --- README.md | 3 --- action.yml | 3 --- src/index.ts | 1 - 3 files changed, 7 deletions(-) diff --git a/README.md b/README.md index d40fa05..fe17655 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,6 @@ A big advantage of this action compared to other actions is that no additional f echo "Release version.json URL: ${{steps.version-change.outputs.version-current-release-url}}" echo "Current snapshot version: ${{steps.version-change.outputs.version-current-snapshot}}" echo "Snapshot version.json URL: ${{steps.version-change.outputs.version-current-snapshot-url}}" - echo "Current raw JSON: ${{steps.version-change.outputs.version-current-raw-json}}" ``` | Parameter | Datatype | Description | @@ -49,7 +48,6 @@ A big advantage of this action compared to other actions is that no additional f | `version-current-release-url` | `string` | The download url of the release version.json file. | | `version-current-snapshot` | `string` | The current Minecraft snapshot version fetched | | `version-current-snapshot-url` | `string` | The download url of the snapshot version.json file. | -| `version-current-raw-json` | `string` | The raw JSON content of the version manifest. | | `version-previous-release` | `string` | The previous Minecraft release version from artifact | | `version-previous-snapshot` | `string` | The previous Minecraft snapshot version from artifact | @@ -88,7 +86,6 @@ jobs: echo "Release version.json URL: ${{steps.version-change.outputs.version-current-release-url}}" echo "Current snapshot version: ${{steps.version-change.outputs.version-current-snapshot}}" echo "Snapshot version.json URL: ${{steps.version-change.outputs.version-current-snapshot-url}}" - echo "Current raw JSON: ${{steps.version-change.outputs.version-current-raw-json}}" ``` diff --git a/action.yml b/action.yml index 4fc5631..e99d7dd 100644 --- a/action.yml +++ b/action.yml @@ -37,9 +37,6 @@ outputs: version-current-snapshot-url: description: 'The download url of the snapshot version.json file.' - version-current-raw-json: - description: 'The raw json content of the current version manifest.' - version-previous-release: description: 'The previous Minecraft release version from artifact.' diff --git a/src/index.ts b/src/index.ts index 125a2e4..fbaaef2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,7 +30,6 @@ const repositoryName = actionsGithub.context.repo.repo; actionsCore.setOutput('version-current-release-url', releaseVersion?.url); actionsCore.setOutput('version-current-snapshot', currentManifest.latest.snapshot); actionsCore.setOutput('version-current-snapshot-url', snapshotVersion?.url); - actionsCore.setOutput('version-current-raw-json', JSON.stringify(currentManifest)); actionsCore.startGroup('Getting artifacts ...'); actionsCore.info('Searching existing artifacts ...');