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