From 2d35495ac54e5b761b7e630885726bb340f7c087 Mon Sep 17 00:00:00 2001 From: goaaats <16760685+goaaats@users.noreply.github.com> Date: Sat, 10 Apr 2021 19:01:55 +0200 Subject: [PATCH] ci: add version to commit --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68a513400..b98b66d1c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -70,6 +70,8 @@ jobs: Move-Item -Force .\canary.zip .\stg\latest.zip $versionData.AssemblyVersion = $newVersion $versionData | ConvertTo-Json -Compress | Out-File .\stg\version + + $env:DVER = $newVersion } - name: Commit changes @@ -77,10 +79,8 @@ jobs: env: DEPLOY_SSH: ${{ secrets.DEPLOY_SSH }} GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" + DVER: ${{ env.DVER }} run: | - ls -lah - ls -lah stg/ - eval "$(ssh-agent -s)" ssh-add - <<< "${DEPLOY_SSH}" @@ -88,6 +88,6 @@ jobs: git config --global user.email "actions@github.com" git add . - git commit -m "[CI] Update staging" || true + git commit -m "[CI] Update staging for ${DVER}" || true git push origin main || true