From 4e06d23af2c912331a07997a45e7ff825d630960 Mon Sep 17 00:00:00 2001 From: RedxLus Date: Tue, 26 Jan 2021 20:02:28 +0100 Subject: [PATCH] Update cmake-windows.yml --- .github/workflows/cmake-windows.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake-windows.yml b/.github/workflows/cmake-windows.yml index 51148043..50b235db 100644 --- a/.github/workflows/cmake-windows.yml +++ b/.github/workflows/cmake-windows.yml @@ -73,14 +73,22 @@ jobs: zip -r build.zip build mv build.zip .. + - name: Set Variable of last version + shell: powershell + run: | + $URL_Latest = Invoke-WebRequest -Uri https://api.github.com/repos/xmrig/xmrig/releases/latest | Select-Object -Expand Content | jq '.tag_name' + Get-Variable URL_Latest + $URL_Latest = $URL_Latest -replace '"', "" + echo "VERSION=${URL_Latest}" >> $Env:GITHUB_ENV + - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref }} - release_name: Release xmrig-AutobuildGithubActionsWINDOWS + tag_name: ${Env:VERSION} + release_name: Release ${Env:VERSION} xmrig-AutobuildGithubActionsWINDOWS draft: false prerelease: false - name: Upload Release Asset