diff options
author | João Moreno <joao.moreno@microsoft.com> | 2022-06-26 21:52:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 21:52:40 +0300 |
commit | 6bb932297728e3fe1d13459de2fa0f0ea12d28e4 (patch) | |
tree | cf580ad4d3ed4148cdf0a7eca8938951ce8b021a /.github | |
parent | 1b08a89fc82549c84c73195eac41244dd72cc9cb (diff) |
Allow dependabot to make yarn.lock changes (#153240)
allow dependabot to make yarn.lock changes
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/no-yarn-lock-changes.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/no-yarn-lock-changes.yml b/.github/workflows/no-yarn-lock-changes.yml index ebd735bf7e5..300a98ad998 100644 --- a/.github/workflows/no-yarn-lock-changes.yml +++ b/.github/workflows/no-yarn-lock-changes.yml @@ -18,8 +18,9 @@ jobs: run: | echo "user: ${{ github.event.pull_request.user.login }}" echo "role: ${{ fromJson(steps.get_permissions.outputs.data).permission }}" + echo "is dependabot: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}" echo "should_run: ${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}" - echo "::set-output name=should_run::${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}" + 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]' }}" - name: Get file changes uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272 if: ${{ steps.control.outputs.should_run == 'true' }} |