瀏覽代碼

CI update dependabot PR - Check that the pusher equal dependabot-preview[bot]

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 5 年之前
父節點
當前提交
c3bf09a986
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .github/workflows/ci.yml

+ 2 - 2
.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 "[email protected]"
           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 }}