Skip to content

Commit 6bb9322

Browse files
authored
Allow dependabot to make yarn.lock changes (microsoft#153240)
allow dependabot to make yarn.lock changes
1 parent 1b08a89 commit 6bb9322

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/no-yarn-lock-changes.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ jobs:
1818
run: |
1919
echo "user: ${{ github.event.pull_request.user.login }}"
2020
echo "role: ${{ fromJson(steps.get_permissions.outputs.data).permission }}"
21+
echo "is dependabot: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}"
2122
echo "should_run: ${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}"
22-
echo "::set-output name=should_run::${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}"
23+
echo "::set-output name=should_run::${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) && github.event.pull_request.user.login != 'dependabot[bot]' }}"
2324
- name: Get file changes
2425
uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272
2526
if: ${{ steps.control.outputs.should_run == 'true' }}

0 commit comments

Comments
 (0)