Skip to content

Commit

Permalink
Fixing typo in TFM setup during CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutomi committed Feb 26, 2024
1 parent 4dd84e7 commit d641b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:
run: |
VERSION=$(echo "${{ matrix.dotnet }}" | sed 's/[^0-9.]*//g')
VERSION=$(echo "${VERSION}" | sed 's/\.$//')
DOTNET_TFM=".net${VERSION}"
DOTNET_TFM="net${VERSION}"
echo "DOTNET_TFM=$DOTNET_TFM" >> $GITHUB_ENV
- name: Set the TFM in Windows
if: startsWith(matrix.os, 'windows')
run: |
$VERSION = ${{ matrix.dotnet }} -replace '[^0-9.]', ''
$VERSION = $VERSION.TrimEnd('.')
$DOTNET_TFM = ".net$VERSION"
$DOTNET_TFM = "net$VERSION"
echo "DOTNET_TFM=$DOTNET_TFM" | Out-File -FilePath $env:GITHUB_ENV -Append
# - name: Set the TFM for .NET 6.0 in Ubuntu
Expand Down

0 comments on commit d641b3d

Please sign in to comment.