diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 8341840b7..a96aa8763 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