diff --git a/actiondoc.yml b/actiondoc.yml index c218382f..c33962cb 100644 --- a/actiondoc.yml +++ b/actiondoc.yml @@ -128,7 +128,7 @@ global: desc: | Returns a string with the AuthID of the currently logged in user or errors if the user is not logged in - return: String + return: [String] keyvalue: generic: diff --git a/ci/doc.sh b/ci/doc.sh index e1f535e6..5f4a4a23 100644 --- a/ci/doc.sh +++ b/ci/doc.sh @@ -1,13 +1,13 @@ +git config --global user.email "$BOT_MAIL" +git config --global user.name "$BOT_USER" +C_USER=$(git show -s --format='%an' HEAD) +C_MAIL=$(git show -s --format='%ae' HEAD) +cd .. +git clone https://github.com/skytable/docs.git +cd docs +chmod +x doc.sh +./doc.sh { - git config --global user.email "$BOT_MAIL" - git config --global user.name "$BOT_USER" - C_USER=$(git show -s --format='%an' HEAD) - C_MAIL=$(git show -s --format='%ae' HEAD) - cd .. - git clone https://github.com/skytable/docs.git - cd docs - chmod +x doc.sh - ./doc.sh git add . && git commit -m "Updated docs from upstream" -m "Triggered by ${GITHUB_SHA}" --author "$C_USER <$C_MAIL>" eval '${BOT_API}' } >>/dev/null