Skip to content

doc: update

doc: update #230

name: dotnet sln list
on:
workflow_dispatch:
push:
branches: ["main"]
jobs:
list:
runs-on: ubuntu-24.04
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
# list of target project (tail -n +3 = skip first 2 header lines)
# https://trstringer.com/github-actions-multiline-strings/
- name: Obtain csproj to lint
id: sln-list
run: |
projects=$(dotnet sln list | tail -n +3 | sort | xargs -n 1 echo ' *')
{
echo "FORMAT_PROJECTS<<EOF"
echo "${projects}"
echo "EOF"
} | tee -a "$GITHUB_OUTPUT"
working-directory: src/dotnet
- run: echo "${{ steps.sln-list.outputs.projects }}"