Skip to content

Commit

Permalink
chore: sed syntax in CLI version workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru committed Nov 22, 2024
1 parent e4785bc commit 8362a08
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docs-cli-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8362a08

Please sign in to comment.