ci: add version to commit

This commit is contained in:
goaaats 2021-04-10 19:01:55 +02:00 committed by GitHub
parent 0c8a2e68cf
commit 2d35495ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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