From ae1aa12c796e894250126932194d420fe36591f5 Mon Sep 17 00:00:00 2001 From: Artem Navoiev Date: Fri, 14 Jul 2023 02:35:55 -0700 Subject: [PATCH] Update .github/workflows/sync-docs.yml Co-authored-by: Max Golionko <8kirk8@gmail.com> --- .github/workflows/sync-docs.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 8341840b72..a96aa8763f 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -33,6 +33,13 @@ jobs: git_user_signingkey: true git_commit_gpgsign: true workdir: docs + - name: Set short git commit SHA + id: vars + run: | + calculatedSha=$(git rev-parse --short ${{ github.sha }}) + echo "::set-output name=short_sha::$calculatedSha" + working-directory: main + - name: update code and commit run: | rm -rf content @@ -41,6 +48,6 @@ jobs: git config --global user.name "${{ steps.import-gpg.outputs.email }}" git config --global user.email "${{ steps.import-gpg.outputs.email }}" git add . - git commit -S -m "sync docs with VictoriaMetrics/VictoriaMetrics" + git commit -S -m "sync docs with VictoriaMetrics/VictoriaMetrics commit: ${{ steps.vars.outputs.short_sha }}" git push working-directory: docs \ No newline at end of file