Fixed download url of cleanup tool
This commit is contained in:
@@ -29,7 +29,13 @@ runs:
|
||||
- name: Download and test package-cleanup tool
|
||||
shell: bash
|
||||
run: |
|
||||
curl -OJ https://git.sh-edraft.de/api/packages/sh-edraft.de/generic/package-cleanup/latest/package-cleanup-linux-x64
|
||||
latest_path=$(curl -sI https://git.sh-edraft.de/sh-edraft.de/-/packages/generic/package-cleanup/ \
|
||||
| awk -F ' ' '/Location:/ {print $2}' \
|
||||
| tr -d '\r')
|
||||
|
||||
version=$(basename "$latest_path")
|
||||
echo "Downloading package-cleanup version $version..."
|
||||
curl -OJ https://git.sh-edraft.de/api/packages/sh-edraft.de/generic/package-cleanup/$version/package-cleanup-linux-x64
|
||||
|
||||
# Make executable
|
||||
chmod +x package-cleanup-linux-x64
|
||||
|
||||
Reference in New Issue
Block a user