From 93d3f687e2bc674420840bdb6ac2975fec418ad4 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 14:11:46 +0100 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4d80d83..46e33d3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -31,12 +31,12 @@ jobs: steps: - name: Download artifact run: | - URL="https://github.com/potzplitz/ExtremeDemonList/actions/runs/${{ github.run_id }}/artifacts/${{ job.outputs.artifact_id }}" - echo "::set-output name=download_url::$URL" + ARTIFACT_URL=$(curl -s "https://github.com/potzplitz/ExtremeDemonList/actions/runs/${{ github.run_id }}/artifacts" | grep -oP '(?<=href=")[^"]+(?=")' | grep -m 1 -oP '\d+$') + echo "::set-output name=artifact_url::$ARTIFACT_URL" id: get_artifact_url - name: Download and extract artifact run: | - wget -O artifact.zip ${{ steps.get_artifact_url.outputs.download_url }} + wget -O artifact.zip "https://github.com/potzplitz/ExtremeDemonList/actions/runs/${{ github.run_id }}/artifacts/download/${{ steps.get_artifact_url.outputs.artifact_url }}" unzip artifact.zip -d extracted-artifact # Rename the directory to include the run ID