File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -150,29 +150,29 @@ jobs:
150150 id : meta
151151 run : |
152152 set -euo pipefail
153-
153+
154154 FORMULA="Formula/mfc.rb"
155-
155+
156156 URL="$(
157157 grep -E '^\s*url\s+"https://github.com/.*/archive/refs/tags/v[0-9]+\.[0-9]+\.[0-9]+\.tar\.gz"' "${FORMULA}" \
158158 | sed -E 's/^\s*url\s+"([^"]+)".*/\1/' \
159159 | tail -n 1
160160 )"
161-
161+
162162 if [[ -z "${URL}" ]]; then
163163 echo "Could not extract release tarball URL from ${FORMULA}" >&2
164164 exit 1
165165 fi
166-
166+
167167 VERSION="$(echo "${URL}" | sed -E 's/.*v([0-9]+\.[0-9]+\.[0-9]+)\.tar\.gz/\1/')"
168168 if [[ -z "${VERSION}" ]]; then
169169 echo "Could not parse version from URL : ${URL}" >&2
170170 exit 1
171171 fi
172-
172+
173173 TAG="mfc-${VERSION}"
174174 ROOT_URL="https://github.com/${GITHUB_REPOSITORY}/releases/download/${TAG}"
175-
175+
176176 echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
177177 echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
178178 echo "root_url=${ROOT_URL}" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments