Skip to content

Commit d191600

Browse files
authored
Update dependency-submisison.yml
1 parent 8d27adb commit d191600

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/dependency-submisison.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ jobs:
4949
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
5050
with:
5151
path: ~/.nuget/packages
52-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.vbproj', '**/*.fsproj', '**/packages.config', '**/*.props', '**/*.targets') }}
52+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.sln', '**/packages.config', '**/*.props', '**/*.targets') }}
5353
restore-keys: |
5454
${{ runner.os }}-nuget-
5555
5656
- name: validate-project
5757
id: validate-project
5858
run: |
5959
# Find all project files
60-
project_files=$(find . -type f \( -name "*.csproj" -o -name "*.vbproj" -o -name "*.fsproj" \) | grep -v '/obj/' | grep -v '/bin/' | head -20)
60+
project_files=$(find . -type f \( -name "*.csproj" -o -name "*.sln" \) | grep -v '/obj/' | grep -v '/bin/' | head -20)
6161
6262
if [ -z "$project_files" ]; then
6363
echo "valid-project=false" >> "$GITHUB_OUTPUT"
6464
echo "### :warning: No .NET project files found" >> $GITHUB_STEP_SUMMARY
6565
echo "" >> $GITHUB_STEP_SUMMARY
6666
echo "**This repository does not appear to contain any .NET project files.**" >> $GITHUB_STEP_SUMMARY
6767
echo "" >> $GITHUB_STEP_SUMMARY
68-
echo "Searched for: *.csproj, *.vbproj, *.fsproj" >> $GITHUB_STEP_SUMMARY
68+
echo "Searched for: *.csproj, *.sln" >> $GITHUB_STEP_SUMMARY
6969
echo "" >> $GITHUB_STEP_SUMMARY
7070
echo "If this is a .NET project, ensure your project files are committed to the repository." >> $GITHUB_STEP_SUMMARY
7171
echo "::error::No .NET project files found in repository"

0 commit comments

Comments
 (0)