Fix doc workflow not reporting errors and `auth whoami` actiondoc

next
Sayan Nandan 3 years ago
parent f40c1d00e5
commit d306307fd8
No known key found for this signature in database
GPG Key ID: 8BC07A0A4D41DD52

@ -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:

@ -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

Loading…
Cancel
Save