From 8362a08b7b95fb8140b838576c77b0c7e1ff8fd9 Mon Sep 17 00:00:00 2001 From: Enno Runne <458526+ennru@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:10:05 +0100 Subject: [PATCH] chore: sed syntax in CLI version workflow --- .github/workflows/docs-cli-updates.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-cli-updates.yml b/.github/workflows/docs-cli-updates.yml index e927cd346..7b0b98c68 100644 --- a/.github/workflows/docs-cli-updates.yml +++ b/.github/workflows/docs-cli-updates.yml @@ -26,11 +26,14 @@ jobs: mkdir -p ${CLI_INSTALL_PATH} curl -sL https://docs.akka.io/install-cli.sh | bash -s -- -y -P ${CLI_INSTALL_PATH} echo ${CLI_INSTALL_PATH} >> ${GITHUB_PATH} - echo "CLI_VERSION=$(${CLI_INSTALL_PATH}/akka version)" >> ${GITHUB_OUTPUT} + CLI_VERSION=${CLI_INSTALL_PATH}/akka version + echo "CLI_VERSION=${CLI_VERSION}" + echo "CLI_VERSION=${CLI_VERSION}" >> ${GITHUB_OUTPUT} - name: Script run: | - sed -i '' "s/\(echo \":akka-cli-version: \)[^\"]*/\1${CLI_VERSION}/" Makefile + echo "setting CLI version to ${CLI_VERSION}" + sed -i.bak "s/\(echo \":akka-cli-version: \)[^\"]*/\1${CLI_VERSION}/" Makefile gem install kramdown-asciidoc ./docs/bin/generate_cli_docs.sh gen-index