Skip to content

Commit

Permalink
Trying something to fix Dependabot issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayKMehta committed Jan 26, 2025
1 parent b355d59 commit 8eecc9c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ jobs:
run: |
if [[ "${{ github.event.pull_request.user.login }}" == 'dependabot[bot]' ]] || [[ "${{ github.actor }}" == 'dependabot[bot]' ]]; then
dotnet restore --force-evaluate
if git status --porcelain | grep -q .; then
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git add ./\*.lock.json
git commit -m "Committing changes to lock-files" -S
git push
else
echo "No changes detected"
fi
else
dotnet restore --locked-mode
fi
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ jobs:
if: env.ENABLED == '1' && steps.pr-check.outputs.pr_found == 'true'
run: |
dotnet restore --force-evaluate
if git status --porcelain | grep -q .; then
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git add ./\*.lock.json
git commit -m "Committing changes to lock-files" -S
git push
else
echo "No changes detected"
fi
- name: Install dependencies
if: env.ENABLED == '1' && steps.pr-check.outputs.pr_found == 'false'
Expand Down

0 comments on commit 8eecc9c

Please sign in to comment.