Merge pull request #4489 from consul/pronto_dependabot

Fix checkout in Pronto on Dependabot pull requests
This commit is contained in:
Javi Martín
2021-04-23 15:59:07 +02:00
committed by GitHub

View File

@@ -15,7 +15,7 @@ jobs:
bundler-cache: true
- name: Run pronto
run: |
if [ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} ]; then
if [[ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} && ${{ github.actor }} != dependabot* ]]; then
PRONTO_PULL_REQUEST_ID="$(jq --raw-output .number "$GITHUB_EVENT_PATH")" PRONTO_GITHUB_ACCESS_TOKEN="${{ github.token }}" bundle exec pronto run -f github_status github_pr -c origin/${{ github.base_ref }}
else
bundle exec pronto run --exit-code -c origin/${{ github.base_ref }}