Skip to content

Commit

Permalink
Merge pull request #1848 from Adyen/chore/fix-reading-version-name-sc…
Browse files Browse the repository at this point in the history
…ript

Version catalogs - Fix version name script
  • Loading branch information
araratthehero authored Oct 23, 2024
2 parents 5b72818 + 59a3f54 commit 8b9f809
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/version_name.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

function release_version() {
local build_file="${GITHUB_WORKSPACE}/dependencies.gradle"
local version_name_key="version_name"
local build_file="${GITHUB_WORKSPACE}/gradle/libs.versions.toml"
local version_name_key="version-name"
local version_name_regex="^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}(-(alpha|beta|rc)[0-9]{2}){0,1}$"

local version=$(sed -n "s/.*${version_name_key}[[:space:]]*=[[:space:]]*[\"\']\(.*\)[\"\'].*/\1/p" ${build_file})
Expand Down

0 comments on commit 8b9f809

Please sign in to comment.