Skip to content

Commit 0de42db

Browse files
committed
Make sure changelog file path is cross-platform
1 parent c42a072 commit 0de42db

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/dotnet-file-core.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,19 @@ jobs:
5555
gh auth status
5656
5757
dotnet tool update -g dotnet-file
58-
dotnet file sync -c:$env:TEMP\dotnet-file.md
59-
if (test-path $env:TEMP\dotnet-file.md) {
58+
$changelog = "$([System.IO.Path]::GetTempPath())dotnet-file.md"
59+
dotnet file sync -c:$changelog
60+
if (test-path $changelog) {
6061
echo 'CHANGES<<EOF' >> $env:GITHUB_ENV
61-
cat $env:TEMP\dotnet-file.md >> $env:GITHUB_ENV
62+
cat $changelog >> $env:GITHUB_ENV
6263
echo 'EOF' >> $env:GITHUB_ENV
63-
cat $env:TEMP\dotnet-file.md
64+
cat $changelog
6465
} else {
6566
echo 'No changelog was generated'
6667
}
6768
6869
- name: +Mᐁ includes
69-
uses: devlooped/actions-include@main
70+
uses: devlooped/actions-includes@main
7071
with:
7172
validate: false
7273

0 commit comments

Comments
 (0)