From 2b891b52f40dc8a7c729e2aaee6b77c8f57c492a Mon Sep 17 00:00:00 2001 From: Alexandr Bogomyakov Date: Fri, 4 Oct 2024 03:42:08 +0300 Subject: [PATCH] Fix --- .github/workflows/build-and-publish.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml index e47cead..d1da205 100644 --- a/.github/workflows/build-and-publish.yaml +++ b/.github/workflows/build-and-publish.yaml @@ -9,12 +9,13 @@ jobs: - name: Checkout uses: actions/checkout@v3.0.0 - - name: Get short SHA - run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV + - name: Set outputs + id: vars + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Set commit id - run: sed -e "s/tag\ =.*/tag = \"${{ env.SHORT_SHA }}\"/" -i config.toml - + run: sed -e "s/tag\ =.*/tag = \"${{ steps.vars.outputs.sha_short }}\"/" -i config.toml + - name: Build and push to gh-pages branch uses: shalzz/zola-deploy-action@v0.17.2 env: