From b54b63b507cc4565e9ff9be755fa63de537e351e Mon Sep 17 00:00:00 2001 From: arcade_kappa Date: Sat, 4 May 2024 22:36:57 +0800 Subject: [PATCH] Fit version change --- .github/workflows/BuildTestInstance.yml | 5 +++-- main.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/BuildTestInstance.yml b/.github/workflows/BuildTestInstance.yml index 3bcab79..e698e41 100644 --- a/.github/workflows/BuildTestInstance.yml +++ b/.github/workflows/BuildTestInstance.yml @@ -6,7 +6,7 @@ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle name: Build Test Instance -run-name: "[${{ github.event.client_payload.build_type || 'Manual' }}#${{ github.event.client_payload.number }}] MMC instance of ${{ inputs.branch || github.event.client_payload.branch }}" +run-name: "[${{ github.event.client_payload.build_type || 'Manual' }}#${{ github.event.client_payload.version }}] MMC instance of ${{ inputs.branch || github.event.client_payload.branch }}" on: workflow_dispatch: inputs: @@ -42,10 +42,11 @@ jobs: cleanroomDownloadBranch: ${{ inputs.branch || github.event.client_payload.branch }} commit_hash: ${{ github.event.client_payload.commit_hash }} run_job_url: ${{ github.event.client_payload.run_job_url }} + version: ${{ github.event.client_payload.version }} - name: Upload a Build Artifact uses: actions/upload-artifact@v4.3.3 with: - name: Cleanroom_MMC + name: Cleanroom_MMC ${{ github.event.client_payload.version }} # A file, directory or wildcard pattern that describes what to upload path: build/output diff --git a/main.py b/main.py index f140cec..ec63625 100644 --- a/main.py +++ b/main.py @@ -59,7 +59,7 @@ installerURL = 'https://nightly.link/CleanroomMC/Cleanroom/' \ + (f'workflows/BuildTest/{branch}' if not RUN_JOB_URL else f'actions/runs/{RUN_JOB_URL.rsplit("/", 1)[-1]}') \ - + '/installer.zip' + + '/installer' + os.getenv('version') + '.zip' print('Installer URL: ' + installerURL) response = requests.get(installerURL) if not response.ok: