Explorar el Código

Merge pull request #524 from glours/update_dependabot_pusher_name

CI update dependabot PR - Check that the pusher startWith depandabot-…
Guillaume Lours hace 5 años
padre
commit
0ffa7fc129
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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
       # https://github.com/dependabot/dependabot-core/issues/1995
       - name: Update dependabot PR
       - name: Update dependabot PR
-        if: github.event.pusher.name == 'dependabot-preview'
+        if: startWith(github.event.pusher.name,'dependabot-preview')
         run: |
         run: |
           git config --local user.email "[email protected]"
           git config --local user.email "[email protected]"
           git config --local user.name "CI GitHub Action"
           git config --local user.name "CI GitHub Action"
@@ -29,7 +29,7 @@ jobs:
           git commit -sm'Update go.sum after dependabot PR'
           git commit -sm'Update go.sum after dependabot PR'
 
 
       - name: Update dependabot PR if needed
       - name: Update dependabot PR if needed
-        if: github.event.pusher.name == 'dependabot-preview'
+        if: startWith(github.event.pusher.name,'dependabot-preview')
         uses: ad-m/github-push-action@master
         uses: ad-m/github-push-action@master
         with:
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           github_token: ${{ secrets.GITHUB_TOKEN }}