Simplify dependabot condition in pronto workflow

We had the `*` because, in the past, pull request could be opened by
either dependabot or dependabot-bot. That's no longer the case since we
started using dependabot v2.
This commit is contained in:
Javi Martín
2024-06-18 19:01:31 +02:00
parent e646689535
commit 61a6ba26b1

View File

@@ -22,7 +22,7 @@ jobs:
run: npm clean-install run: npm clean-install
- name: Run pronto - name: Run pronto
run: | run: |
if [[ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} && ${{ github.actor }} != dependabot* ]]; 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 }} 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 else
bundle exec pronto run --exit-code -c origin/${{ github.base_ref }} bundle exec pronto run --exit-code -c origin/${{ github.base_ref }}