From fd45171068633eaf52d6f305fab79141233da66b Mon Sep 17 00:00:00 2001 From: Raymond den Haan Date: Fri, 16 Feb 2024 09:51:40 +0100 Subject: [PATCH] Update package prefix extraction logic in workflow --- .github/workflows/packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index aa4926a42..485a9b73a 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -24,7 +24,7 @@ jobs: BRANCH_NAME=${{ github.ref }} # e.g., refs/heads/main BRANCH_NAME=${BRANCH_NAME#refs/heads/} # remove the refs/heads/ prefix # Extract the last part after the last slash of the branch name, if any, e.g., feature/issue-123 -> issue-123 and use it as the version prefix. - PACKAGE_PREFIX=$(echo $BRANCH_NAME | rev | cut -d/ -f1 | rev) + PACKAGE_PREFIX=$(echo $BRANCH_NAME | rev | cut -d/ -f1 | rev | tr '_' '-') # If the branch name is main, use the preview version. Otherwise, use the branch name as the version prefix. if [[ "${BRANCH_NAME}" == "main" ]]; then