Skip to content

Commit

Permalink
[actions] The changelog action now requires .NET 9. (#21629)
Browse files Browse the repository at this point in the history
So install that, since it doesn't look like it's installed by default yet.

Also build before running, because the new terminal logger for the build
in .NET 9 ends up printing junk which ends up in the changelog.
  • Loading branch information
rolfbjarne authored Nov 15, 2024
1 parent e9009b4 commit 1a7def0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/maestro-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ jobs:
if: github.actor == 'dotnet-maestro[bot]'

steps:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9'

- name: 'Compute changelog'
run: |
set -exo pipefail
git clone https://github.com/spouliot/dotnet-tools
cd dotnet-tools/changelog
dotnet run https://github.com/$GITHUB_REPOSITORY/pull/${GITHUB_REF_NAME/\/*/} > /tmp/changelog.txt 2>&1
dotnet build
./bin/Debug/net9.0/changelog https://github.com/$GITHUB_REPOSITORY/pull/${GITHUB_REF_NAME/\/*/} > /tmp/changelog.txt 2>&1
- name: 'Add changelog'
uses: actions/[email protected]
Expand Down

0 comments on commit 1a7def0

Please sign in to comment.