Skip to content

Commit 0271d8b

Browse files
committed
ci: address Copilot review comments (YAML runs-on placement, newline escapes, release if/fi, secret if syntax)
1 parent 2b5ed91 commit 0271d8b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ run: dotnet restore AiDotNet.sln
3131
dotnet tool update -g dotnet-format || dotnet tool install -g dotnet-format
3232
export PATH="$PATH:$HOME/.dotnet/tools"
3333
dotnet format AiDotNet.sln --verify-no-changes || (echo "Run 'dotnet format' locally to fix style issues." && exit 1)
34-
build:
34+
build:
3535
name: Build
3636
strategy:
3737
matrix:
@@ -179,3 +179,4 @@ run: dotnet restore AiDotNet.sln
179179
retention-days: 7
180180

181181

182+

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
if [ -f "src/AiDotNet.csproj" ]; then
5151
dotnet pack src/AiDotNet.csproj -c Release -o out /p:PackageVersion=${{ steps.version.outputs.version }}
52-
- name: Verify TFMs in package (net46, net6.0, net8.0)
52+
fi\n\n - name: Verify TFMs in package (net46, net6.0, net8.0)
5353
run: |
5454
set -e
5555
shopt -s nullglob
@@ -79,7 +79,7 @@ jobs:
7979
name: Publish to NuGet
8080
runs-on: ubuntu-latest
8181
needs: build-test-pack
82-
if: ${{ secrets.NUGET_API_KEY != '' }}
82+
if: secrets.NUGET_API_KEY != ''
8383
steps:
8484
- name: Download package
8585
uses: actions/download-artifact@v4
@@ -110,3 +110,4 @@ jobs:
110110
env:
111111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112112

113+

0 commit comments

Comments
 (0)