Skip to content

Commit

Permalink
chore(TECHOPS-16168): add renovate for aptos-cli
Browse files Browse the repository at this point in the history
x
  • Loading branch information
seanl-circle committed Dec 4, 2024
1 parent c5f24d0 commit d5c3c7a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>circlefin/renovate-config",
"github>circlefin/renovate-config:versions.sh"
],
"regexManagers": [
{
"fileMatch": ["scripts/shell/setup.sh"],
"matchStrings": [
"export (?<depName>.*?)_VERSION=\"?(?<currentValue>[^\"\\t\\n\\r]*)\"? +# (?<datasource>.*?):(?<packageName>[^\\s]*)( versioning=(?<versioning>[^\\s]+))?( extractVersion=(?<extractVersion>[^\\s]+))?",
"export (?<depName>.*?)_TAG=\"?(?<currentValue>[^\"\\t\\n\\r]*)\"? +# (?<datasource>.*?):(?<packageName>[^\\s]*)( versioning=(?<versioning>[^\\s]+))?( extractVersion=(?<extractVersion>[^\\s]+))?"
],
"depNameTemplate": "{{{ replace '_' '-' (lowercase depName) }}}"
}
]
}
2 changes: 1 addition & 1 deletion scripts/shell/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
echo ">> Setting up environment"

# ==== Aptos installation ====
APTOS_CLI_VERSION="4.2.6"
APTOS_CLI_VERSION=4.2.6 # github-releases:aptos-labs extractVersion=^aptos-cli-v(?<version>.*)$

if [ "$CI" == true ]; then
curl -sSfL -o /tmp/aptos.zip "https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v$APTOS_CLI_VERSION/aptos-cli-$APTOS_CLI_VERSION-Ubuntu-22.04-x86_64.zip"
Expand Down

0 comments on commit d5c3c7a

Please sign in to comment.