Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/dotnet-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ jobs:
- name: Restore tools
run: |
if [ ! -f .config/dotnet-tools.json ]; then
echo "::error file=.config/dotnet-tools.json::This reusable workflow requires a local .NET tool manifest in the consuming repository. Add .config/dotnet-tools.json with the dotnet-ci tool (for example: 'dotnet new tool-manifest' then 'dotnet tool install dotnet-ci') or update the repository to the current org CI bootstrap."
echo "::error file=.config/dotnet-tools.json::This reusable workflow requires a local .NET tool manifest in the consuming repository. Add .config/dotnet-tools.json with the OpenLobotomy.Tooling tool (for example: 'dotnet new tool-manifest' then 'dotnet tool install --local OpenLobotomy.Tooling') or update the repository to the current org CI bootstrap."
exit 1
fi

dotnet tool restore

if ! dotnet tool list --local | awk 'NR > 2 { print $1 }' | grep -Fxq 'dotnet-ci'; then
echo "::error file=.config/dotnet-tools.json::The local .NET tool manifest does not include the required 'dotnet-ci' tool. Install it with 'dotnet tool install dotnet-ci' and commit the updated .config/dotnet-tools.json."
if ! dotnet tool list --local | awk 'NR > 2 { print $1 }' | grep -Fxq 'openlobotomy.tooling'; then
echo "::error file=.config/dotnet-tools.json::The local .NET tool manifest does not include the required 'OpenLobotomy.Tooling' tool. Install it with 'dotnet tool install --local OpenLobotomy.Tooling' and commit the updated .config/dotnet-tools.json."
exit 1
fi

Expand Down
Loading