Update maven.yml
This commit is contained in:
parent
6d859bee36
commit
93d3f687e2
1 changed files with 3 additions and 3 deletions
6
.github/workflows/maven.yml
vendored
6
.github/workflows/maven.yml
vendored
|
@ -31,12 +31,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
run: |
|
run: |
|
||||||
URL="https://github.com/potzplitz/ExtremeDemonList/actions/runs/${{ github.run_id }}/artifacts/${{ job.outputs.artifact_id }}"
|
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=download_url::$URL"
|
echo "::set-output name=artifact_url::$ARTIFACT_URL"
|
||||||
id: get_artifact_url
|
id: get_artifact_url
|
||||||
- name: Download and extract artifact
|
- name: Download and extract artifact
|
||||||
run: |
|
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
|
unzip artifact.zip -d extracted-artifact
|
||||||
|
|
||||||
# Rename the directory to include the run ID
|
# Rename the directory to include the run ID
|
||||||
|
|
Loading…
Reference in a new issue