doc: update #230
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |