From c3bf09a986bb04905e653efc31e6a48bc165fd85 Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Thu, 20 Aug 2020 15:35:20 +0200 Subject: [PATCH] CI update dependabot PR - Check that the pusher equal dependabot-preview[bot] Signed-off-by: Guillaume Lours --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0543d2f5f..1158bafc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: # https://github.com/dependabot/dependabot-core/issues/1995 - name: Update dependabot PR - if: startWith(github.event.pusher.name,'dependabot-preview') + if: github.event.pusher.name == 'dependabot-preview[bot]' run: | git config --local user.email "compose-cli-ci@docker.com" git config --local user.name "CI GitHub Action" @@ -29,7 +29,7 @@ jobs: git commit -sm'Update go.sum after dependabot PR' - name: Update dependabot PR if needed - if: startWith(github.event.pusher.name,'dependabot-preview') + if: github.event.pusher.name == 'dependabot-preview[bot]' uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}