From 9f2965e08111e73ef2e4da4b836bf7ac0f2e4535 Mon Sep 17 00:00:00 2001 From: Ivan Plantevin Date: Wed, 11 May 2022 08:56:20 +0200 Subject: [PATCH] fix: use correct executable path in generate_docs.sh --- pkg/entity/data_connector/cmd.go | 6 +++--- scripts/generate_docs.sh | 2 +- scripts/publish_docs.sh | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/entity/data_connector/cmd.go b/pkg/entity/data_connector/cmd.go index 6466be6..cb5eae3 100644 --- a/pkg/entity/data_connector/cmd.go +++ b/pkg/entity/data_connector/cmd.go @@ -12,9 +12,9 @@ const ( credentialsFileFlag = "credentials-file" ) -var longDoc = `A Data Connector represents a location from and to which data can be read and written. For example, an AWS S3 bucket -or a Google Cloud Storage bucket. By itself, a Data Connector does nothing. A Data Connector with valid credentials is -required when creating a Batch Exporter or Batch Job. +var longDoc = `A Data Connector represents a location from which data can be read, or to which data can be written. +For example, an AWS S3 bucket or a Google Cloud Storage bucket. By itself, a Data Connector does nothing. +A Data Connector with valid credentials is required when creating a Batch Exporter or Batch Job. ### Usage` diff --git a/scripts/generate_docs.sh b/scripts/generate_docs.sh index 9782b3e..f5176ef 100755 --- a/scripts/generate_docs.sh +++ b/scripts/generate_docs.sh @@ -22,7 +22,7 @@ then make ./dist/strm --generate-docs > /dev/null 2>&1 else - ./dist/strm_linux_amd64/strm --generate-docs > /dev/null 2>&1 + ./dist/strm_linux_amd64_v1/strm --generate-docs > /dev/null 2>&1 fi cd generated_docs diff --git a/scripts/publish_docs.sh b/scripts/publish_docs.sh index 9880608..dfea6ae 100755 --- a/scripts/publish_docs.sh +++ b/scripts/publish_docs.sh @@ -7,7 +7,7 @@ then git config --global user.name "${APIS_USERNAME}" tag_name="${GITHUB_REF##*/}" else - tag_name="local_test" + tag_name="local_publish" fi if [[ $GITHUB_TOKEN == "" ]] @@ -17,15 +17,15 @@ then git checkout -b $tag_name rm -rf ./docs/cli-reference cp -rf ../generated_docs ./docs/cli-reference - git add . - git commit -m "add generated docs (cli branch: ${tag_name})" + git add -A + git commit -m "update generated CLI reference docs (CLI version: ${tag_name})" git push -f origin $tag_name else git clone "https://git:${GITHUB_TOKEN}@github.com/strmprivacy/docs.git" cd docs rm -rf ./docs/cli-reference cp -rf ../generated_docs ./docs/cli-reference - git add . - git commit -m "add generated docs (cli branch: ${tag_name})" + git add -A + git commit -m "update generated CLI reference docs (CLI version: ${tag_name})" git push fi