From c2eaab2da9b06486c5886875f8139439225a0740 Mon Sep 17 00:00:00 2001 From: Steven Miller Date: Thu, 25 Apr 2024 11:35:51 -0400 Subject: [PATCH] Tembo CLI doc update automation workflow (#746) --- .github/actions/generate-docs/action.yml | 2 +- .github/workflows/tembo_cli.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/generate-docs/action.yml b/.github/actions/generate-docs/action.yml index 30b4e5da6..c95617567 100644 --- a/.github/actions/generate-docs/action.yml +++ b/.github/actions/generate-docs/action.yml @@ -54,7 +54,7 @@ runs: git config user.name "coredb-service-user" git config user.email "admin@github.com" git fetch origin ${{ inputs.website_branch }} - git checkout ${{ inputs.website_branch }} + git checkout ${{ inputs.website_branch }} || git checkout -b ${{ inputs.website_branch }} cd .. cp tembo-repo/command-reference.md website-repo/src/content/docs/development/cli/ cd website-repo diff --git a/.github/workflows/tembo_cli.yml b/.github/workflows/tembo_cli.yml index a4a2d24cf..944197d4c 100644 --- a/.github/workflows/tembo_cli.yml +++ b/.github/workflows/tembo_cli.yml @@ -4,6 +4,7 @@ on: push: paths: - 'tembo-cli/**' + - '.github/workflows/tembo_cli.yml' branches: - main