Skip to content

Commit 93d3efe

Browse files
authored
fix release CI
1 parent d73e6b1 commit 93d3efe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/dotnet.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ jobs:
4444
$repo.DownloadLinkUpdate = $repo.DownloadLinkInstall
4545
$repo | ConvertTo-Json | % { "[`n" + $_ + "`n]" } | Set-Content 'repo.json'
4646
- name: Create Release
47-
if: ${{ vars.RELEASE_VERSION != '0.0.0.0' }}
47+
if: ${{ env.RELEASE_VERSION != '0.0.0.0' }}
4848
id: create_release
4949
uses: actions/create-release@v1
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
with:
53-
tag_name: v${{ vars.RELEASE_VERSION }}
54-
release_name: IINACT ${{ vars.RELEASE_VERSION }}
53+
tag_name: v${{ env.RELEASE_VERSION }}
54+
release_name: IINACT ${{ env.RELEASE_VERSION }}
5555
draft: false
5656
prerelease: false
5757
- name: Upload Release Asset
58-
if: ${{ vars.RELEASE_VERSION != '0.0.0.0' }}
58+
if: ${{ env.RELEASE_VERSION != '0.0.0.0' }}
5959
id: upload-release-asset
6060
uses: actions/upload-release-asset@v1
6161
env:
@@ -66,14 +66,14 @@ jobs:
6666
asset_name: IINACT.zip
6767
asset_content_type: application/zip
6868
- name: Commit repo.json
69-
if: ${{ vars.RELEASE_VERSION != '0.0.0.0' }}
69+
if: ${{ env.RELEASE_VERSION != '0.0.0.0' }}
7070
run: |
7171
git config --global user.name "Actions User"
7272
git config --global user.email "[email protected]"
7373
git fetch origin main
7474
git checkout main
7575
git add repo.json
76-
git commit -m "[CI] Updating repo.json for ${{ vars.RELEASE_VERSION }}" || true
76+
git commit -m "[CI] updating repo.json for ${{ env.RELEASE_VERSION }}" || true
7777
git push origin main
7878
7979

0 commit comments

Comments
 (0)