From 9651500f4906c5303226ca723147980f3a13c195 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Sat, 13 Jan 2024 12:49:54 +1100 Subject: [PATCH] t5 --- .github/workflows/drevops-publish-docs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/drevops-publish-docs.yml b/.github/workflows/drevops-publish-docs.yml index b8df76ba6..9e66147af 100644 --- a/.github/workflows/drevops-publish-docs.yml +++ b/.github/workflows/drevops-publish-docs.yml @@ -12,7 +12,7 @@ on: - feature/1137-publish-docs-gha jobs: - publish-docs: + drevops-publish-docs: runs-on: ubuntu-latest # container: drevops/ci-runner:23.12.0 @@ -44,8 +44,8 @@ jobs: run: | cd .drevops/docs export DOCS_PUBLISH_REMOTE_URL=https://github.com/drevops/drevops_docs.git - export DOCS_PUBLISH_SRC_TAG=${CIRCLE_TAG:-} - export DOCS_PUBLISH_SRC_BRANCH=${CIRCLE_BRANCH:-} + export DOCS_PUBLISH_SRC_TAG=${{ github.ref_type == 'tag' && github.ref_type || '' }} + export DOCS_PUBLISH_SRC_BRANCH=${{ github.ref_type == 'branch' && github.ref_type || '' }} export DOCS_PUBLISH_SSH_FILE="~/.ssh/id_rsa_docs_publish_ssh_private_key" export DOCS_PUBLISH_CANARY_BRANCH="develop" export DOCS_PUBLISH_COMMIT_MESSAGE="Automatically pushed from drevops/drevops"