Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
8099407c6c
|
|||
| a05bca6f01 | |||
| 1a87cc50e9 | |||
| 8d7432ff69 |
@@ -10,8 +10,8 @@ set -euo pipefail
|
||||
|
||||
PN="gitea-runner"
|
||||
UPSTREAM_RSS="https://gitea.com/gitea/runner/releases.rss"
|
||||
UPSTREAM_ARCHIVE="https://gitea.com/gitea/runner/archive"
|
||||
UPSTREAM_GOMOD="https://gitea.com/gitea/runner/raw/tag"
|
||||
UPSTREAM_ARCHIVE="https://gitea.com/api/v1/repos/gitea/runner/archive"
|
||||
UPSTREAM_GOMOD="https://gitea.com/api/v1/repos/gitea/runner/raw/go.mod"
|
||||
|
||||
: "${BUMP_TOKEN:?BUMP_TOKEN is required}"
|
||||
: "${GITHUB_SERVER_URL:?GITHUB_SERVER_URL is required}"
|
||||
@@ -82,7 +82,7 @@ git checkout -b "$branch"
|
||||
git mv "${pkgdir}/${PN}-${current}.ebuild" "${pkgdir}/${PN}-${latest}.ebuild"
|
||||
|
||||
# Track the upstream go.mod's required Go version in BDEPEND.
|
||||
goreq=$(curl -fsSL "${UPSTREAM_GOMOD}/v${latest}/go.mod" \
|
||||
goreq=$(curl -fsSL "${UPSTREAM_GOMOD}?ref=v${latest}" \
|
||||
| grep -oE '^go [0-9]+\.[0-9]+(\.[0-9]+)?' | awk '{print $2}')
|
||||
[ -n "$goreq" ] && sed -i -E \
|
||||
"s#^BDEPEND=\">=dev-lang/go-[0-9.]+\"#BDEPEND=\">=dev-lang/go-${goreq}\"#" \
|
||||
|
||||
Reference in New Issue
Block a user