Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Nov 19, 2023
1 parent fd8d388 commit e9539f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
name: Get remote package data
run: |
#!/bin/bash
curl --show-error --fail --silent "https://pkgs.alpinelinux.org/package/edge/community/aarch64/tor" --output ./package_data.html
package="edge/community/aarch64/tor"
curl --show-error --fail --silent "https://pkgs.alpinelinux.org/package/$package" --output ./package_data.html
latest_tag=$(grep -A 3 -i version ./package_data.html | sed -E 's#.*>([0-9\.]+)-r[0-9]+</a>#\1#g' | tail -1 | sed 's/^[ \t]*//;s/[ \t]*$//')
[ -z "$latest_tag" ] && echo "Tag not found!" && exit 1
[[ "$latest_tag" = v* ]] && latest_tag="${latest_tag:1}"
Expand Down

0 comments on commit e9539f8

Please sign in to comment.