#85: Updated redo snippets to avoid extensive calling of countRedoRecords() #28
Workflow file for this run
This file contains hidden or 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: validate csharp dependabot config | |
on: | |
pull_request: | |
branches: [main] | |
permissions: {} | |
jobs: | |
validate-csharp-dependabot-config: | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
persist-credentials: false | |
- run: | | |
cs_projects=$(find . -name "*.csproj" | cut -c 2-) | |
exit_code=0 | |
for project in $cs_projects; do | |
project_directory=${project%/*} | |
echo "[INFO] project directory is: $project_directory" | |
if ! grep -qE "\- $project_directory/" .github/dependabot.yml; then | |
echo "[ERROR] $project_directory missing from .github/dependabot.yml configuration" | |
exit_code=1 | |
fi | |
done | |
exit $exit_code |