From 3b0eaa7dfa04cedf7468fca76ba570bfe5aded3c Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Fri, 3 Sep 2021 16:21:42 +0530 Subject: [PATCH 1/2] Allow docs.yml to be manually triggered --- .github/workflows/docs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b980102..aabe716 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,6 +1,7 @@ name: Update Docs on: + workflow_dispatch: push: tags: - '*' @@ -20,7 +21,7 @@ jobs: - name: Update docs run: | cd master-branch - version="${GITHUB_REF#refs/tags/}" + version="$(git describe --abbrev=0 --tags)" for v in `sort -rV <(printf '%s\n%s' "${version}" "$(ls ../docs-branch/versions)")`; do base="$(basename "${v}")" @@ -32,6 +33,7 @@ jobs: cd ../docs-branch mkdir -p versions + [[ -e "versions/${version}" ]] && rm -rf "versions/${version}" mv ../docs-perm "versions/${version}" mv versions .git ../docs cd ../docs From e00d254a3f7f7976c6b9afce4504763046a97b0d Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Fri, 3 Sep 2021 16:23:42 +0530 Subject: [PATCH 2/2] Update docs.yml --- .github/workflows/docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index aabe716..c9134c8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,6 +21,7 @@ jobs: - name: Update docs run: | cd master-branch + git fetch --prune --unshallow --tags version="$(git describe --abbrev=0 --tags)" for v in `sort -rV <(printf '%s\n%s' "${version}" "$(ls ../docs-branch/versions)")`; do